[Scummvm-cvs-logs] SF.net SVN: scummvm: [32625] scummvm/trunk/configure
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Mon Jun 9 05:09:44 CEST 2008
Revision: 32625
http://scummvm.svn.sourceforge.net/scummvm/?rev=32625&view=rev
Author: jvprat
Date: 2008-06-08 20:09:44 -0700 (Sun, 08 Jun 2008)
Log Message:
-----------
Use mktemp when available
Modified Paths:
--------------
scummvm/trunk/configure
Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure 2008-06-09 02:36:34 UTC (rev 32624)
+++ scummvm/trunk/configure 2008-06-09 03:09:44 UTC (rev 32625)
@@ -125,9 +125,12 @@
_srcdir=`dirname $0`
-# TODO: We should really use mktemp(1) to determine a random tmp file name.
-# However, that tool might not be available everywhere.
-TMPO=${_srcdir}/scummvm-conf
+# Determine a tmp file name, using mktemp(1) when available.
+if type mktemp > /dev/null 2>&1 ; then
+ TMPO=`mktemp`
+else
+ TMPO=${_srcdir}/scummvm-conf
+fi
TMPC=${TMPO}.cpp
TMPLOG=${_srcdir}/config.log
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list