diff options
author | Noah Slater <nslater@apache.org> | 2008-06-16 15:04:36 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2008-06-16 15:04:36 +0000 |
commit | 85a0f5eaa0e7114aa31d7f91539d331e6e114e77 (patch) | |
tree | c89b8b28716b6c5afbccb1ad452731b22b955e18 /bootstrap | |
parent | 1375f3a4d8a823fe38d55fc10176702cddb8395f (diff) |
removed use of mktemp which was causing problems on OS X 10.4
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@668180 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -19,6 +19,7 @@ SCRIPT_ERROR=1 ACINCLUDE_FILE="acinclude.m4" ACINCLUDE_IN_FILE="acinclude.m4.in" +ACINCLUDE_TMP_FILE="acinclude.m4.tmp" AC_CHECK_ICU_COMPRESSED_FILE="build-contrib/ac_check_icu.m4_2008-06-07.gz" AUTHORS_FILE="authors.xml" BUILD_AUX_DIRECTORY="build-aux" @@ -34,20 +35,19 @@ basename=`basename $0` get () { variable_name=$1 - temporary_file=`mktemp` - echo "changequote(\`[', \`]')" > $temporary_file - sed -e "s/m4_//" < $ACINCLUDE_IN_FILE >> $temporary_file - echo $variable_name >> $temporary_file + echo "changequote(\`[', \`]')" > $ACINCLUDE_TMP_FILE + sed -e "s/m4_//" < $ACINCLUDE_IN_FILE >> $ACINCLUDE_TMP_FILE + echo $variable_name >> $ACINCLUDE_TMP_FILE if test -x "`which m4 || true`"; then - `which m4` $temporary_file | grep -v "^$" || true + `which m4` $ACINCLUDE_TMP_FILE | grep -v "^$" || true else if test -x "`which gm4 || true`"; then - `which gm4` $temporary_file | grep -v "^$" || true + `which gm4` $ACINCLUDE_TMP_FILE | grep -v "^$" || true else echo unknown fi fi - rm -f $temporary_file + rm -f $ACINCLUDE_TMP_FILE } display_version () { |