mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
configure: Place temporary files in a subdirectory of their own
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31592 b3059339-0415-0410-9bf9-f77b7e298cf2 Fix variable name for tmpdir selection iterator. Temporary directories should now be properly created on Linux. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31594 b3059339-0415-0410-9bf9-f77b7e298cf2 config.log belongs into mplayer's root directory, not into the tmp directory git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31596 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d86aad3d56
commit
9ac700bc1a
18
configure
vendored
18
configure
vendored
@ -1427,17 +1427,19 @@ if os2 ; then
|
||||
def_priority="#define CONFIG_PRIORITY 1"
|
||||
fi
|
||||
|
||||
for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do
|
||||
test "$I" && break
|
||||
for tmpdir in "$TMPDIR" "$TEMPDIR" "/tmp" ; do
|
||||
test "$tmpdir" && 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"
|
||||
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"
|
||||
@ -8529,4 +8531,4 @@ EOF
|
||||
fi
|
||||
|
||||
# Last move:
|
||||
rm -f "$TMPEXE" "$TMPC" "$TMPS" "$TMPCPP" "$TMPH"
|
||||
rm -rf "$mplayer_tmpdir"
|
||||
|
Loading…
Reference in New Issue
Block a user