couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsla...@apache.org
Subject svn commit: r668180 - /incubator/couchdb/trunk/bootstrap
Date Mon, 16 Jun 2008 15:04:36 GMT
Author: nslater
Date: Mon Jun 16 08:04:36 2008
New Revision: 668180

URL: http://svn.apache.org/viewvc?rev=668180&view=rev
Log:
removed use of mktemp which was causing problems on OS X 10.4

Modified:
    incubator/couchdb/trunk/bootstrap

Modified: incubator/couchdb/trunk/bootstrap
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/bootstrap?rev=668180&r1=668179&r2=668180&view=diff
==============================================================================
--- incubator/couchdb/trunk/bootstrap (original)
+++ incubator/couchdb/trunk/bootstrap Mon Jun 16 08:04:36 2008
@@ -19,6 +19,7 @@
 
 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 @@
 
 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 () {



Mime
View raw message