]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in, libtoolize.in, commit, config/mailnotify: Remove
authorScott James Remnant <scott@netsplit.com>
Thu, 12 Feb 2004 19:22:28 +0000 (19:22 +0000)
committerScott James Remnant <scott@netsplit.com>
Thu, 12 Feb 2004 19:22:28 +0000 (19:22 +0000)
$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.

ChangeLog
commit
config/mailnotify
libtoolize.in
ltmain.in

index afaa9b2425bbbd5fe0618abe677edf427f2d43f0..4c9bb9c5161d28e5c0e177338bde249f14c00056 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-02-12  Scott James Remnant  <scott@netsplit.com>
+
+       * ltmain.in, libtoolize.in, commit, config/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  <scott@netsplit.com>
 
        * config/mailnotify (func_sendmail): Look for sendmail in a
diff --git a/commit b/commit
index c57d5bfdce79a6a51c6f416e3ff517d5a17ca9e6..2273a9f44eac7e05acd6e3d4240bc3f52a8ed999 100755 (executable)
--- 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:
index a9b07d90818dd3c3c21419459d1130a4cbb7a4f3..a6e9c638bbfb43076708b24491054b6846a9cb7c 100755 (executable)
@@ -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:
index c94c58e8ebc2900ced34d5f2cba59ac49962f163..2aa1739303851fdfade40dff751a2b0f287ee311 100644 (file)
@@ -54,8 +54,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
@@ -65,7 +65,7 @@ basename="$SED s,^.*/,,g"
 progpath="$0"
 
 # The name of this program:
-progname=`echo "$progpath" | $basename`
+progname=`echo "$progpath" | $SED $basename`
 PROGRAM=libtoolize
 
 # Global variables:
@@ -244,7 +244,7 @@ func_mkdir_p ()
     while test ! -d "$my_dir"; do
       my_dirs="$my_dir $my_dirs"
       case $my_dir in */*) ;; *) break ;; esac
-      my_dir=`echo "$my_dir" | $dirname`
+      my_dir=`echo "$my_dir" | $SED $dirname`
     done
    test ! -n "$my_dirs" || $MKDIR $my_dirs
 }
@@ -258,7 +258,7 @@ func_copy ()
     my_destfile="$2"
     my_return_status=1
 
-    func_mkdir_p `echo "$my_destfile" | "$dirname`
+    func_mkdir_p `echo "$my_destfile" | $SED $dirname`
 
     $RM "$my_destfile"
     if $opt_link && $LN_S "$my_srcfile" "$my_destfile"; then
index 495044d8e23f6fcc819b188009c13b99895b98cb..ffc7ef22911574684d13c6789c4ef0bf6bc9a18a 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -25,7 +25,7 @@
 # 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
@@ -35,7 +35,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: