summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gccmdep.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/gccmdep.cpp b/gccmdep.cpp
index 4578b71..8f39d0d 100644
--- a/gccmdep.cpp
+++ b/gccmdep.cpp
@@ -3,29 +3,21 @@ XCOMM!/bin/sh
XCOMM
XCOMM makedepend which uses 'gcc -M'
XCOMM
-XCOMM $XFree86: xc/config/util/gccmdep.cpp,v 3.10 2002/11/25 14:04:48 eich Exp $
+XCOMM $XFree86: xc/config/util/gccmdep.cpp,v 3.11 2003/06/15 16:53:11 tsi Exp $
XCOMM
XCOMM Based on mdepend.cpp and code supplied by Hongjiu Lu <hjl@nynexst.com>
XCOMM
-TMP=${TMPDIR-/tmp}/mdep$$
+TMP=mdep$$.tmp
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
+${RM} ${TMP}
-trap "$RM ${TMP}*; exit 1" 1 2 15
-trap "$RM ${TMP}*; exit 0" 1 2 13
+trap "${RM} ${TMP}*; exit 1" 1 2 15
+trap "${RM} ${TMP}*; exit 0" 1 2 13
files=
makefile=