Commit f7ab6611 authored by Matthias Vallentin's avatar Matthias Vallentin

Make configure script POSIX compliant.

The script used a Bash built-in to store a multi-line string into a variable
(read -d), which is not POSIX compliant. Fixed by using cat.
parent 275ce111
...@@ -193,7 +193,7 @@ else ...@@ -193,7 +193,7 @@ else
fi fi
echo "DIRS :=$workdirs\n" > $sourcedir/Makefile echo "DIRS :=$workdirs\n" > $sourcedir/Makefile
read -d '' makefile <<"EOT" makefile=$(cat<<'EOT'
all: all:
@for i in $(DIRS); do $(MAKE) -C $$i $@; done @for i in $(DIRS); do $(MAKE) -C $$i $@; done
...@@ -214,5 +214,6 @@ distclean: ...@@ -214,5 +214,6 @@ distclean:
.PHONY: all test install uninstall clean distclean .PHONY: all test install uninstall clean distclean
EOT EOT
)
echo "$makefile" >> $sourcedir/Makefile echo "$makefile" >> $sourcedir/Makefile
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