commit cfa6228d468d8fa69d80abfb6e7965c89aa516f8
parent 8d301437b46676e7dc472759d9f0fb2c6b98750c
Author: Josuah Demangeon <mail@josuah.net>
Date: Thu, 10 May 2018 12:25:24 +0200
convert ./configure from makefile syntax to plain shell syntax
In Makefiles, $ needs to be escaped into $$, and it is not possible
to have multiple commands without using ;\
Theses are removed, but the $$.mk is still kept, as in shell $$ is
the current PID and $$.mk expanding to something like 38742.mk is
a normal behavior.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
@@ -4,12 +4,12 @@ if [ ! -e config.mk ]
then
printf '%s\n' 'Generating config.mk from defaults...' \
'(edit it for customization and then re-run this script)'
- trap "rm -f $$.mk" 0 2 3; \
- (cat config.mk.def ;\
- sed -n '/^# '`uname`'/,/^$$/p' system.mk) > $$.mk && \
+ trap "rm -f $$.mk" 0 2 3
+ (cat config.mk.def
+ sed -n '/^# '`uname`'/,/^$/p' system.mk) > $$.mk &&
mv $$.mk config.mk
fi
printf 'Generating arch-dependant build files...\n'
-make dep > /dev/null && \
+make dep > /dev/null &&
printf 'You can now install scc with “make install”\n'