X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=install-sh;h=0b65ee871d33c7ab1e6ec36b86dda87e0d85c6ee;hb=57d1eb1a07683a2643911e685d641b9fd0097a01;hp=dd97db7aa1cae9655149aad9d21c6cf42476c0da;hpb=c98fd1d524066acd722c5d7c6089ecfae10cc70a;p=deliverable%2Fbinutils-gdb.git diff --git a/install-sh b/install-sh index dd97db7aa1..0b65ee871d 100755 --- a/install-sh +++ b/install-sh @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2004-09-10.20 +scriptversion=2004-10-22.00 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -213,7 +213,7 @@ do fi # This sed command emulates the dirname command. - dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. @@ -226,7 +226,8 @@ do oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' - set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` + set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` + shift IFS=$oIFS pathcomp=