summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-18 07:40:22 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-18 07:40:22 -0800
commit39d099488e39650c06f60ac3a5ed2e0bd5d0be5f (patch)
tree7216b5a1324128b39bdf836b2a68849f4dba3a8f
parent0c7b3cb4b34529fb3e6e8c1e9c702856a83e51de (diff)
downloadautoconf213-39d099488e39650c06f60ac3a5ed2e0bd5d0be5f.tar.gz
autoconf213-39d099488e39650c06f60ac3a5ed2e0bd5d0be5f.tar.bz2
autoconf213-39d099488e39650c06f60ac3a5ed2e0bd5d0be5f.zip
autoconf-2.12-race
-rw-r--r--autoconf.sh6
-rw-r--r--autoheader.sh4
-rw-r--r--autoupdate.sh2
3 files changed, 6 insertions, 6 deletions
diff --git a/autoconf.sh b/autoconf.sh
index e6b0819..6db0ba2 100644
--- a/autoconf.sh
+++ b/autoconf.sh
@@ -45,7 +45,7 @@ case "${M4}" in
esac
: ${TMPDIR=/tmp}
-tmpout=${TMPDIR}/acout.$$
+tmpout=`/bin/mktemp ${TMPDIR}/acout.XXXXXX`
localdir=
show_version=no
@@ -97,10 +97,10 @@ esac
trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15
-tmpin=${TMPDIR}/acin.$$ # Always set this, to avoid bogus errors from some rm's.
+tmpin=`/bin/mktemp ${TMPDIR}/acin.XXXXXX`
+# Always set this, to avoid bogus errors from some rm's.
if test z$infile = z-; then
infile=$tmpin
- cat > $infile
elif test ! -r "$infile"; then
echo "autoconf: ${infile}: No such file or directory" >&2
exit 1
diff --git a/autoheader.sh b/autoheader.sh
index 196c16d..2ddfe7a 100644
--- a/autoheader.sh
+++ b/autoheader.sh
@@ -194,9 +194,9 @@ if test -n "$syms"; then
# Some fgrep's have limits on the number of lines that can be in the
# pattern on the command line, so use a temporary file containing the
# pattern.
- (fgrep_tmp=${TMPDIR-/tmp}/autoh$$
+ (fgrep_tmp=`/bin/mktemp ${TMPDIR-/tmp}/autoh$$.XXXXXX`
trap "rm -f $fgrep_tmp; exit 1" 1 2 15
- cat > $fgrep_tmp <<EOF
+ cat >> $fgrep_tmp <<EOF
$syms
EOF
fgrep -f $fgrep_tmp
diff --git a/autoupdate.sh b/autoupdate.sh
index c92e023..968cd8f 100644
--- a/autoupdate.sh
+++ b/autoupdate.sh
@@ -26,7 +26,7 @@ usage="\
Usage: autoupdate [-h] [--help] [-m dir] [--macrodir=dir]
[--version] [template-file]"
-sedtmp=/tmp/acups.$$
+sedtmp=`/bin/mktemp /tmp/acups.XXXXXX`
# For debugging.
#sedtmp=/tmp/acups
show_version=no