]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/m4general.m4sh, config/mailnotify.m4sh,
authorGary V. Vaughan <gary@gnu.org>
Fri, 19 Nov 2004 16:58:49 +0000 (16:58 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 19 Nov 2004 16:58:49 +0000 (16:58 +0000)
clcommit.m4sh: Updated from cvs-utils--tla--1.0 to allow
parallel commits, and use safer tmpfiles.

ChangeLog
clcommit.m4sh
config/general.m4sh
config/mailnotify.m4sh

index 301d1e469e523eb2bfab1c32a634b0397875db21..3cdc25349301aa0becf70d0866f1a45e633b5a6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,21 +1,27 @@
-2004-11-19  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2004-11-19  Gary V. Vaughan  <gary@gnu.org>
+
+       * config/m4general.m4sh, config/mailnotify.m4sh,
+       clcommit.m4sh: Updated from cvs-utils--tla--1.0 to allow
+       parallel commits, and use safer tmpfiles.
+
+2004-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * doc/libtool.texi (Libltdl interface): Typos.
 
        * doc/libtool.texi (Libltdl interface): Document public macros
        LT_PATHSEP_CHAR, LT_DIRSEP_CHAR, use in path descriptions.
 
-2004-11-18  Daniel Reed <djr@redhat.com>
+2004-11-18  Daniel Reed  <djr@redhat.com>
 
        * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret
        `include' statements in toplevel ld.so.conf file.
 
-2004-11-18  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2004-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin/mingw/pw32]:
        tag-protect setting of ld_shlibs.
 
-2004-11-17  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2004-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * doc/libtool.texi (Libltdl interface): The path separator
        is system-dependent.
@@ -26,7 +32,7 @@
        [aix4/aix5 !ia64]: Set whole_archive_flag_spec to '$convenience'
        so convenience libs are really added to the link cmdline.
 
-2004-11-17  Mats Rynge <rynge@isi.edu>
+2004-11-17  Mats Rynge  <rynge@isi.edu>
 
        * libtool.m4 [linux]: Use only the CC basename in case statment
        when checking for icc/ecc. Allows for setting CC to the full path
index 386c82274e7243ee3eef8e26e2913f44e339dcc1..ae2cb801e71882ae42fa4b664e2ba3f9b9503485 100644 (file)
@@ -103,10 +103,10 @@ exit_cmd=:
 
 # Locations for important files:
 signature_file=
-log_file="${TMPDIR-/tmp}/$progname-$$"
+log_dir="`func_mktempdir`"
+log_file="$log_dir/log"
 
-$RM "${TMPDIR-/tmp}/$progname"*
-trap '$RM "${log_file}"*; exit $EXIT_FAILURE' 1 2 15
+trap '$RM -r "$log_dir"; exit $EXIT_FAILURE' 1 2 15
 
 set -e
 
@@ -417,7 +417,7 @@ func_commit ()
 # func_mailnotify
 func_mailnotify ()
 {
-    notify_file="${log_file}.2"
+    notify_file="${log_dir}/notify"
     func_verbose "Mailing commit notification to $sendmail_to"
 
     {
@@ -493,7 +493,7 @@ func_mailnotify ()
     func_mailnotify
   fi
 
-  $RM "${log_file}"*
+  $RM -r "$log_dir"
 }
 
 exit $EXIT_SUCCESS
index c00500719139e79b40c5e0d0a2dade7185542262..23880ccdf7fec97ad75cbb827b1656d9eefde993 100644 (file)
@@ -227,12 +227,13 @@ func_mkdir_p ()
 }
 
 
-# func_mktempdir
+# func_mktempdir [string]
 # Make a temporary directory that won't clash with other running
-# libtool processes, and avoids race conditions if possible
+# libtool processes, and avoids race conditions if possible.  If
+# given, STRING is the basename for that directory.
 func_mktempdir ()
 {
-    my_template="${TMPDIR-/tmp}/libtool"
+    my_template="${TMPDIR-/tmp}/${1-$progname}"
 
     if test "$opt_dry_run" = ":"; then
       # Return a directory name, but don't create it in dry-run mode
index 539cbe268bd9237bc652efb072ffdcc33071edfc..461d17f75a2ba185803c32f0f58886d2fb8e0ecb 100644 (file)
@@ -58,7 +58,6 @@ m4_divert_push([SCRIPT])#!/bin/sh
 
 # Report bugs to <gary@gnu.org>
 
-: ${TMPDIR=/tmp}
 : ${HOST=`hostname`}
 : ${SENDMAIL=sendmail}
 
@@ -330,8 +329,9 @@ func_sendmail ()
 ## ----- ##
 
 {
-  fname="${TMPDIR}/$PROGRAM$RANDOM-$RANDOM.$$"
-  trap 'rm -f "$fname"; exit 1' 1 2 15
+  tmp_dir="`func_mktempdir`"
+  fname="$tmp_dir/mail"
+  trap '$RM -r "$tmp_dir"; exit $EXIT_FAILURE' 1 2 15
 
   # Generate a comma separated list of destination addresses for the
   # mail headers:
@@ -372,6 +372,8 @@ func_sendmail ()
   else
       mv $fname $outputfile || exit $EXIT_FAILURE
   fi
+
+  $RM -r "$tmp_dir"
 }
 
 exit $EXIT_SUCCESS