[MPlayer-cvslog] r36041 - trunk/configure
diego
subversion at mplayerhq.hu
Fri Mar 22 17:36:10 CET 2013
Author: diego
Date: Fri Mar 22 17:36:10 2013
New Revision: 36041
Log:
configure: Delete temporary files when a configure run is interrupted.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Fri Mar 22 16:37:40 2013 (r36040)
+++ trunk/configure Fri Mar 22 17:36:10 2013 (r36041)
@@ -1471,6 +1471,12 @@ done
mplayer_tmpdir="$tmpdir/mplayer-configure-$RANDOM-$$"
mkdir $mplayer_tmpdir || die "Unable to create tmpdir."
+cleanup() {
+ rm -rf "$mplayer_tmpdir"
+}
+
+trap cleanup EXIT
+
TMPLOG="config.log"
TMPC="$mplayer_tmpdir/tmp.c"
TMPCPP="$mplayer_tmpdir/tmp.cpp"
@@ -9320,4 +9326,4 @@ EOF
fi
# Last move:
-rm -rf "$mplayer_tmpdir"
+cleanup
More information about the MPlayer-cvslog
mailing list