summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Schumann <sascha@apache.org>2000-09-23 15:55:37 +0200
committerSascha Schumann <sascha@apache.org>2000-09-23 15:55:37 +0200
commit137b9009a09bd394d134762598c2c9a5c98e5572 (patch)
tree8e607ec22726392339e4b9aa8d6383f55840351b
parentPedant of bsd_makefile. Reverses the include directives to SysV-style. (diff)
downloadapache2-137b9009a09bd394d134762598c2c9a5c98e5572.tar.xz
apache2-137b9009a09bd394d134762598c2c9a5c98e5572.zip
Workaround for systems like BSD/OS without mktemp.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86306 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xbuild/bsd_makefile2
-rwxr-xr-xbuild/sysv_makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/bsd_makefile b/build/bsd_makefile
index d9066bdbfc..22370ccef7 100755
--- a/build/bsd_makefile
+++ b/build/bsd_makefile
@@ -60,7 +60,7 @@ test -f build/bsd_makefile || exit 2
test -f bsd_converted && exit 0
-tmpfile=`mktemp /tmp/bsd_makefile.XXXXXX` || exit 1
+tmpfile=`mktemp /tmp/bsd_makefile.XXXXXX` || tmpfile="tmp.$$"
for i in build/*.mk; do
sed 's/^include \(.*\)/.include "\1"/' $i >$tmpfile \
&& cp $tmpfile $i
diff --git a/build/sysv_makefile b/build/sysv_makefile
index ef37030dde..623279747a 100755
--- a/build/sysv_makefile
+++ b/build/sysv_makefile
@@ -60,7 +60,7 @@ test -f build/sysv_makefile || exit 2
test -f bsd_converted || exit 1
-tmpfile=`mktemp /tmp/sysv_makefile.XXXXXX` || exit 1
+tmpfile=`mktemp /tmp/sysv_makefile.XXXXXX` || tmpfile="tmp.$$"
for i in build/*.mk; do
sed 's/^\.include "\(.*\)"/include \1/' $i >$tmpfile \
&& cp $tmpfile $i