diff options
author | alanh <alanh> | 2003-03-24 23:54:15 +0000 |
---|---|---|
committer | alanh <alanh> | 2003-03-24 23:54:15 +0000 |
commit | d5935687c69a0c1c3455dc34e5027637fc745fac (patch) | |
tree | 5a0cfacd60fc5128a3b8a5ed08c4aba2bf36c94b /xc/config/util/gccmdep.cpp | |
parent | 2ff36509093f39110af8b57f08e9d6e6a57321c5 (diff) |
XFree86 4.3.0 mergeX_4_3_0-20030324-merge
Diffstat (limited to 'xc/config/util/gccmdep.cpp')
-rw-r--r-- | xc/config/util/gccmdep.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xc/config/util/gccmdep.cpp b/xc/config/util/gccmdep.cpp index 43675a6f1..4578b710c 100644 --- a/xc/config/util/gccmdep.cpp +++ b/xc/config/util/gccmdep.cpp @@ -3,17 +3,27 @@ XCOMM!/bin/sh XCOMM XCOMM makedepend which uses 'gcc -M' XCOMM -XCOMM $XFree86: xc/config/util/gccmdep.cpp,v 3.9 2001/05/22 13:29:17 dawes Exp $ +XCOMM $XFree86: xc/config/util/gccmdep.cpp,v 3.10 2002/11/25 14:04:48 eich Exp $ XCOMM XCOMM Based on mdepend.cpp and code supplied by Hongjiu Lu <hjl@nynexst.com> XCOMM -TMP=`pwd`/.mdep$$ +TMP=${TMPDIR-/tmp}/mdep$$ CC=CCCMD RM=RMCMD LN=LNCMD MV=MVCMD +XCOMM Security: if $tmp exists exit immediately +rm -f ${TMP} +if [ -e ${TMP} ] ; then + echo "$0: ${TMP} exists already, exit." 1>&2 + exit 1; +fi +if [ -n "`type -p mktemp`" ] ; then + TMP="`mktemp ${TMP}.XXXXXX`" || exit 1 +fi + trap "$RM ${TMP}*; exit 1" 1 2 15 trap "$RM ${TMP}*; exit 0" 1 2 13 |