Skip to content

Commit

Permalink
Use printf instead of echo -n
Browse files Browse the repository at this point in the history
In Mac OS X, `echo` builtin command doesn't accept `-n` option.
  • Loading branch information
jun66j5 committed Apr 1, 2016
1 parent 96b3f68 commit 7a988b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Expand Up @@ -143,7 +143,7 @@ Makefile.cfg:

status:
@echo
@echo -n "Python: "
@printf "Python: "
@which python
@echo
@python contrib/make_status.py
Expand All @@ -155,7 +155,7 @@ status:
@echo " server-options=$(server-options)"
@echo
@echo "External dependencies:"
@echo -n " Git version: "
@printf " Git version: "
@git --version 2>/dev/null || echo "not installed"
@echo

Expand Down Expand Up @@ -253,7 +253,7 @@ pre-check:
@echo "checking catalogs for $(locales)..."

check-%:
@echo -n "$(@): "
@printf "$(@): "
python setup.py $(foreach catalog,$(catalogs), \
check_catalog$(_catalog) -l $(*))
@$(foreach catalog,$(catalogs), \
Expand All @@ -269,14 +269,14 @@ pre-stats: stats-pot
stats-pot:
@echo "translation statistics for catalog templates:"
@$(foreach catalog,$(catalogs), \
echo -n "$(catalog.pot): "; \
printf "$(catalog.pot): "; \
msgfmt --statistics $(catalog.pot);)
@rm -f messages.mo

stats-%:
@$(foreach catalog,$(catalogs), \
[ -e $(catalog.po) ] \
&& { echo -n "$(catalog.po): "; \
&& { printf "$(catalog.po): "; \
msgfmt --statistics $(catalog.po); } \
|| echo "$(catalog.po) doesn't exist (make init-$(*))";)
@rm -f messages.mo
Expand Down Expand Up @@ -317,7 +317,7 @@ diff-%:
@diff=l10n-$(*).diff; \
$(vc) diff trac/locale/$(*) > $$diff; \
[ -s $$diff ] && { \
echo -n "# $(*) changed -> "; \
printf "# $(*) changed -> "; \
python contrib/l10n_diff_index.py $$diff; \
} || rm $$diff

Expand Down

0 comments on commit 7a988b1

Please sign in to comment.