When bash 3 is run POSIX compatible (e.g. as /bin/sh), invoking "trap" without command argument is not allowed anymore.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14562 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
gcc/configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -687,7 +687,7 @@
if test -f skip-this-dir; then
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler.
trap 0
trap '' 0
rm -f Makefile* ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
# Execute the final clean-up actions
${config_shell} skip-this-dir
@@ -1599,7 +1599,7 @@
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler.
rm -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
trap 0
trap '' 0
exit 0