[MPlayer-cvslog] r31592 - trunk/configure

diego subversion at mplayerhq.hu
Thu Jul 1 11:00:54 CEST 2010


Author: diego
Date: Thu Jul  1 11:00:54 2010
New Revision: 31592

Log:
Place temporary files in a subdirectory of their own.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Wed Jun 30 12:09:19 2010	(r31591)
+++ trunk/configure	Thu Jul  1 11:00:54 2010	(r31592)
@@ -1533,13 +1533,15 @@ for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; d
   test "$I" && break
 done
 
+mplayer_tmpdir="$tmpdir/mplayer-configure-$RANDOM-$$"
+mkdir $mplayer_tmpdir || die "Unable to create tmpdir."
 
-TMPLOG="config.log"
-TMPC="$I/mplayer-conf-$RANDOM-$$.c"
-TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp"
-TMPEXE="$I/mplayer-conf-$RANDOM-$$$_exesuf"
-TMPH="$I/mplayer-conf-$RANDOM-$$.h"
-TMPS="$I/mplayer-conf-$RANDOM-$$.S"
+TMPLOG="$mplayer_tmpdir/config.log"
+TMPC="$mplayer_tmpdir/tmp.c"
+TMPCPP="$mplayer_tmpdir/tmp.cpp"
+TMPEXE="$mplayer_tmpdir/tmp$_exesuf"
+TMPH="$mplayer_tmpdir/tmp.h"
+TMPS="$mplayer_tmpdir/tmp.S"
 
 rm -f "$TMPLOG"
 echo configuration: $configuration > "$TMPLOG"
@@ -9381,4 +9383,4 @@ EOF
 fi
 
 # Last move:
-rm -f "$TMPEXE" "$TMPC" "$TMPS" "$TMPCPP" "$TMPH"
+rm -rf "$mplayer_tmpdir"


More information about the MPlayer-cvslog mailing list