aboutsummaryrefslogtreecommitdiff
path: root/install-sh
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-11-16 01:18:39 +0000
committerDJ Delorie <dj@redhat.com>2004-11-16 01:18:39 +0000
commitf247ebc36e8b4e46c0a5908f62b424991c0a40ea (patch)
tree7ca1e407f991318ffd877be1263c82ba8b1eaee3 /install-sh
parentf3f23268fef8a3dabe745e8258bff2b8d3a2f599 (diff)
downloadnewlib-f247ebc36e8b4e46c0a5908f62b424991c0a40ea.zip
newlib-f247ebc36e8b4e46c0a5908f62b424991c0a40ea.tar.gz
newlib-f247ebc36e8b4e46c0a5908f62b424991c0a40ea.tar.bz2
2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
* install-sh, compile: Import from automake. * config.guess, config.sub: Import from savannnah.
Diffstat (limited to 'install-sh')
-rwxr-xr-xinstall-sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/install-sh b/install-sh
index dd97db7..0b65ee8 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=