]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AC_OUTPUT_CONFIG_STATUS): Set up traps to remove
authorJim Meyering <meyering@lucent.com>
Fri, 5 May 2000 14:58:44 +0000 (14:58 +0000)
committerJim Meyering <meyering@lucent.com>
Fri, 5 May 2000 14:58:44 +0000 (14:58 +0000)
temporaries upon exit, too, not just upon receipt of signal.

acgeneral.m4
lib/autoconf/general.m4

index 8fec5fa9a81ce569ae850c3fcd761a4fc1b772ab..98dab703b5939c88cfdf046c4018c23f92973ee0 100644 (file)
@@ -3940,7 +3940,8 @@ fi
 
 # Trap to remove the temp files.
 dnl FIXME: Should we check that there are files to remove?
-trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15
+trap 'status=$?; rm -rf $ac_cs_root* && exit $status' 0
+trap 'exit $?' 1 2 13 15
 
 EOF
 ])[]dnl ifval
index 8fec5fa9a81ce569ae850c3fcd761a4fc1b772ab..98dab703b5939c88cfdf046c4018c23f92973ee0 100644 (file)
@@ -3940,7 +3940,8 @@ fi
 
 # Trap to remove the temp files.
 dnl FIXME: Should we check that there are files to remove?
-trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15
+trap 'status=$?; rm -rf $ac_cs_root* && exit $status' 0
+trap 'exit $?' 1 2 13 15
 
 EOF
 ])[]dnl ifval