summaryrefslogtreecommitdiff
path: root/install-sh
diff options
context:
space:
mode:
authorkcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-16 01:04:30 +0000
committerkcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-16 01:04:30 +0000
commit037ff4cc9d0106aa5cb24c067bdea7729d071f14 (patch)
treeac3b24ec0c69df152f3c27cc6b0782e81e33dea3 /install-sh
parente294bcffa4ff7a39e07b161a52bb87010b79aa3c (diff)
downloadgcc-037ff4cc9d0106aa5cb24c067bdea7729d071f14.tar.gz
2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
* install-sh, compile: Import from automake. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90710 138bc75d-0d04-0410-961f-82ee72b054a4
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 dd97db7aa1c..0b65ee871d3 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=