From: Scott James Remnant Date: Thu, 12 Feb 2004 19:24:00 +0000 (+0000) Subject: * ltmain.in, libtoolize.in, commit, mailnotify: Remove X-Git-Tag: release-1-5-4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982d507f5aae283f7b0ab817cf77391058aa3545;p=thirdparty%2Flibtool.git * ltmain.in, libtoolize.in, commit, mailnotify: Remove $SED from definitions of $dirname and $basename and prefix each use with it instead. Some shells (zsh) treat the expansion as a single command instead of a command with arguments. * mailnotify (func_sendmail): Look for sendmail in a --- diff --git a/ChangeLog b/ChangeLog index 2ebe500e5..8e3286220 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,13 @@ 2004-02-12 Scott James Remnant - * config/mailnotify (func_sendmail): Look for sendmail in a + * ltmain.in, libtoolize.in, commit, mailnotify: Remove + $SED from definitions of $dirname and $basename and prefix each + use with it instead. Some shells (zsh) treat the expansion as + a single command instead of a command with arguments. + +2004-02-12 Scott James Remnant + + * mailnotify (func_sendmail): Look for sendmail in a couple of common non-PATH locations as well. 2004-02-12 Gary V. Vaughan diff --git a/commit b/commit index 9b11be72b..0df38c221 100755 --- a/commit +++ b/commit @@ -73,8 +73,8 @@ : ${RM="rm -f"} : ${SED="sed"} -dirname="$SED s,/[^/]*$,," -basename="$SED s,^.*/,,g" +dirname="s,/[^/]*$,," +basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of @@ -84,7 +84,7 @@ basename="$SED s,^.*/,,g" progpath="$0" # The name of this program: -progname=`echo "$progpath" | $basename` +progname=`echo "$progpath" | $SED $basename` PROGRAM=clcommit # Global variables: diff --git a/ltmain.in b/ltmain.in index f76c9502d..a27d7de5e 100644 --- a/ltmain.in +++ b/ltmain.in @@ -24,7 +24,7 @@ # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. -basename="$SED s,^.*/,,g" +basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of @@ -34,7 +34,7 @@ basename="$SED s,^.*/,,g" progpath="$0" # The name of this program: -progname=`echo "$progpath" | $basename` +progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: diff --git a/mailnotify b/mailnotify index a9b07d908..a6e9c638b 100755 --- a/mailnotify +++ b/mailnotify @@ -61,8 +61,8 @@ : ${RM="rm -f"} : ${SED="sed"} -dirname="$SED s,/[^/]*$,," -basename="$SED s,^.*/,,g" +dirname="s,/[^/]*$,," +basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of @@ -72,7 +72,7 @@ basename="$SED s,^.*/,,g" progpath="$0" # The name of this program: -progname=`echo "$progpath" | $basename` +progname=`echo "$progpath" | $SED $basename` PROGRAM=mailnotify # Global variables: