Permalink
Browse files

Use printf rather than echo

The echo command is decidedly not portable. Instead of messing around lets use the nicely portable printf and thus avoid all our \n character issues due to differing implementations of echo.
  • Loading branch information...
1 parent f43fdbb commit 2dd1d8609ab143d27b2b1b942f7454b764163078 @mxcl mxcl committed Dec 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
View
@@ -40,7 +40,7 @@ ebin/playdar.app: src/playdar.app
ESCRIPT="\nmain(_)\n"'-> io:format("default_config()->~p.~n",[file:consult("etc/playdar.conf.example")]),halt(0).'
.default_config.hrl.escript:
- echo $(ESCRIPT) > $@
+ printf $(ESCRIPT) > $@
src/playdar_config.erl: include/default_config.hrl
include/default_config.hrl: .default_config.hrl.escript
escript $< > $@

0 comments on commit 2dd1d86

Please sign in to comment.