always followed by a SHELL setting.
* tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set
SHELL when calling `$MAKE -e'.
+2002-04-10 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * Makefile.am (maintainer-check): Make sure `$MAKE -e' is
+ always followed by a SHELL setting.
+ * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set
+ SHELL when calling `$MAKE -e'.
+
2002-04-10 Alexandre Duret-Lutz <duret_g@epita.fr>
* tests/subobj9.test: Use configure.in, not configure.ac,
exit 1; \
fi
@if grep -v SHELL $(srcdir)/tests/*.test | grep '\$$MAKE .*=' ; then \
- echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
+ echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e SHELL=/bin/sh" in the above lines,' 1>&2; \
echo 'it is more portable.' 1>&2; \
exit 1; \
fi
+## On NetBSD (1.5) and OSF, the $SHELL variable is still inherited from
+## the environment.
+ @if grep '$$MAKE.*-e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
+ echo 'Always overwrite SHELL when using "$$MAKE -e".' 1>&2; \
+ echo 'Use "$$MAKE -e SHELL=/bin/sh" in the above lines.' 1>&2; \
+ exit 1; \
+ fi
@if egrep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=/bin/sh" in' 1>&2; \
echo 'the above lines.' 1>&2; \
exit 1; \
fi
@if grep -v SHELL $(srcdir)/tests/*.test | grep '\$$MAKE .*=' ; then \
- echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
+ echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e SHELL=/bin/sh" in the above lines,' 1>&2; \
echo 'it is more portable.' 1>&2; \
exit 1; \
fi
+ @if grep '$$MAKE.*-e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
+ echo 'Always overwrite SHELL when using "$$MAKE -e".' 1>&2; \
+ echo 'Use "$$MAKE -e SHELL=/bin/sh" in the above lines.' 1>&2; \
+ exit 1; \
+ fi
@if egrep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=/bin/sh" in' 1>&2; \
echo 'the above lines.' 1>&2; \
&& $AUTOCONF \
&& $AUTOMAKE -a \
&& CC='gcc' ./configure \
- && ANSI2KNR=./ansi2knr U=_ $MAKE -e \
+ && ANSI2KNR=./ansi2knr U=_ $MAKE -e SHELL=/bin/sh \
&& ./hello
mv one/Makefile one/Makefile.old
sed -e 's,ANSI2KNR =,ANSI2KNR = ./ansi2knr,' < one/Makefile.old > one/Makefile
-U=_ $MAKE -e
+U=_ $MAKE -e SHELL=/bin/sh
./one/joe
./two/maude
&& $AUTOCONF \
&& $AUTOMAKE -a \
&& CC='gcc' ./configure \
- && ANSI2KNR=./ansi2knr U=_ $MAKE -e \
+ && ANSI2KNR=./ansi2knr U=_ $MAKE -e SHELL=/bin/sh \
&& ./hello