summaryrefslogtreecommitdiffstats
path: root/install-sh
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2007-02-07 23:26:19 +0000
committerNathan Kinder <nkinder@redhat.com>2007-02-07 23:26:19 +0000
commit67be3511d41496ed3c26f082cbf1eb06d96003cb (patch)
tree94fddbe3dfe52a0700d24d49fd22577a2874f476 /install-sh
parent6bf7bfa5eb16d0758795c39ee38eea6e1293072c (diff)
downloadds-67be3511d41496ed3c26f082cbf1eb06d96003cb.tar.gz
ds-67be3511d41496ed3c26f082cbf1eb06d96003cb.tar.xz
ds-67be3511d41496ed3c26f082cbf1eb06d96003cb.zip
Resolves: 227754
Summary: Set library search path when using AC_CHECK_LIB in db.m4.
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: