aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dudebout <[email protected]>2013-01-02 05:42:59 -0500
committerNicolas Dudebout <[email protected]>2013-01-14 08:58:16 -0500
commit25803a966b07df24500dd74fc100c14656fb7d82 (patch)
tree321b33a91bf7768fd5abfbf8959af56f4fc21511
parent5204f206b982a9ded4a70e8f900fdf5811f4e557 (diff)
downloadbootstrap-25803a966b07df24500dd74fc100c14656fb7d82.tar.xz
bootstrap-25803a966b07df24500dd74fc100c14656fb7d82.zip
Replaces some @echo recipes by @printf.
The echo command does not understand the -n argument on Mac OS X. This is due to the fact that: - Makefile calls /bin/sh to execute a command - in Mac OS X, /bin/sh is a link to bash - in Mac OS X, bash is compiled with --enable-strict-posix-default Therefore, the echo command does not have the -n argument. printf on the other hand is a builtin function that works well on Mac OS X and Linux.
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cb776a6bf..eb7356d7d 100644
--- a/Makefile
+++ b/Makefile
@@ -13,14 +13,14 @@ build:
@echo "\n${HR}"
@echo "Building Bootstrap..."
@echo "${HR}\n"
- @echo -n "Running JSHint on javascript..."
+ @printf "Running JSHint on javascript..."
@jshint js/*.js --config js/.jshintrc
@jshint js/tests/unit/*.js --config js/.jshintrc
@echo " ${CHECK} Done"
- @echo -n "Compiling LESS with Recess..."
+ @printf "Compiling LESS with Recess..."
@./node_modules/.bin/recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
@echo " ${CHECK} Done"
- @echo -n "Compiling documentation..."
+ @printf "Compiling documentation..."
@node docs/build
@cp fonts/* docs/assets/fonts/
@cp js/*.js docs/assets/js/
@@ -29,7 +29,7 @@ build:
@cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js
@./node_modules/.bin/uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js
@echo "/**\n* Bootstrap.js v2.3.0 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js
- @echo -n "Compiling and minifying javascript..."
+ @printf "Compiling and minifying javascript..."
@cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js
@rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
@echo " ${CHECK} Done"