From 25803a966b07df24500dd74fc100c14656fb7d82 Mon Sep 17 00:00:00 2001 From: Nicolas Dudebout Date: Wed, 2 Jan 2013 05:42:59 -0500 Subject: [PATCH] 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. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cb776a6bf0..eb7356d7da 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"