-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.
[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
# 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
# func_mailnotify
func_mailnotify ()
{
- notify_file="${log_file}.2"
+ notify_file="${log_dir}/notify"
func_verbose "Mailing commit notification to $sendmail_to"
{
func_mailnotify
fi
- $RM "${log_file}"*
+ $RM -r "$log_dir"
}
exit $EXIT_SUCCESS
}
-# 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
# Report bugs to <gary@gnu.org>
-: ${TMPDIR=/tmp}
: ${HOST=`hostname`}
: ${SENDMAIL=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:
else
mv $fname $outputfile || exit $EXIT_FAILURE
fi
+
+ $RM -r "$tmp_dir"
}
exit $EXIT_SUCCESS