summaryrefslogtreecommitdiffstats
path: root/install-sh
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2007-02-09 23:28:19 +0000
committerNathan Kinder <nkinder@redhat.com>2007-02-09 23:28:19 +0000
commit2cbacc63087fc045f18b4dff451d7c98d4782f57 (patch)
treed19810022441d922502ec8c2e3d2b36aa19c9234 /install-sh
parent941a7e89074e2ed0e0401aa778ccf412dce14fc8 (diff)
downloadds-2cbacc63087fc045f18b4dff451d7c98d4782f57.tar.gz
ds-2cbacc63087fc045f18b4dff451d7c98d4782f57.tar.xz
ds-2cbacc63087fc045f18b4dff451d7c98d4782f57.zip
Resolves: 228082
Summary: Added --enable-bundle option for legacy builds.
Diffstat (limited to 'install-sh')
-rwxr-xr-xinstall-sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/install-sh b/install-sh
index 4d4a9519..dd97db7a 100755
--- a/install-sh
+++ b/install-sh
@@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile
-scriptversion=2005-05-14.22
+scriptversion=2004-09-10.20
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
@@ -109,7 +109,7 @@ while test -n "$1"; do
shift
continue;;
- --help) echo "$usage"; exit $?;;
+ --help) echo "$usage"; exit 0;;
-m) chmodcmd="$chmodprog $2"
shift
@@ -134,7 +134,7 @@ while test -n "$1"; do
shift
continue;;
- --version) echo "$0 $scriptversion"; exit $?;;
+ --version) echo "$0 $scriptversion"; exit 0;;
*) # When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
@@ -213,7 +213,7 @@ do
fi
# This sed command emulates the dirname command.
- dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
+ dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
@@ -226,8 +226,7 @@ do
oIFS=$IFS
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
- set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
- shift
+ set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS=$oIFS
pathcomp=
@@ -296,7 +295,7 @@ do
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|| {
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
- (exit 1); exit 1
+ (exit 1); exit
}
else
:
@@ -307,12 +306,12 @@ do
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
}
}
- fi || { (exit 1); exit 1; }
+ fi || { (exit 1); exit; }
done
# The final little trick to "correctly" pass the exit status to the exit trap.
{
- (exit 0); exit 0
+ (exit 0); exit
}
# Local variables: