summaryrefslogtreecommitdiff
path: root/lib/install-sh
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2004-01-12 09:51:26 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2004-01-12 09:51:26 +0000
commit9d5dc008d52230a0f9ec26a668f1dc28cd3bb8b8 (patch)
tree14d4bd835c3877e4bcb629843348ba7eacdd6ff8 /lib/install-sh
parenta31a69cd6c7b6353900ee0b38db0ddbdd8f16aca (diff)
downloadautomake-9d5dc008d52230a0f9ec26a668f1dc28cd3bb8b8.tar.gz
* lib/install-sh: Do not use "$@" in a context where it may be empty,
for the sake of OSF1/Tru64's shell. Report from He Li.
Diffstat (limited to 'lib/install-sh')
-rwxr-xr-xlib/install-sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/install-sh b/lib/install-sh
index acf44a6e0..040ebc886 100755
--- a/lib/install-sh
+++ b/lib/install-sh
@@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile
-scriptversion=2004-01-08.23
+scriptversion=2004-01-12.10
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
@@ -140,11 +140,12 @@ while test -n "$1"; do
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
- shift
if test -n "$dstarg"; then
+ # $@ is not empty: it contains at least $arg.
set fnord "$@" "$dstarg"
- shift
+ shift # fnord
fi
+ shift # arg
dstarg=$arg
done
break;;