Commit a590e32b authored by Matthias Vallentin's avatar Matthias Vallentin

Replace echo with portable version.

It turns out that the echo shell built-in is not portable when using it to
print special characters like "\n". For this purpose, the community encourages
the use of printf instead.
parent c5ed24d7
...@@ -192,7 +192,7 @@ else ...@@ -192,7 +192,7 @@ else
configure $compiler "" $bindir $libdir $CMakeGenerator configure $compiler "" $bindir $libdir $CMakeGenerator
fi fi
echo -e "DIRS :=$workdirs\n" > $sourcedir/Makefile printf "DIRS := %s\n\n" $workdirs > $sourcedir/Makefile
makefile=$(cat <<'EOT' makefile=$(cat <<'EOT'
all: all:
@for i in $(DIRS); do $(MAKE) -C $$i $@; done @for i in $(DIRS); do $(MAKE) -C $$i $@; done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment