diff options
author | Nathan Kinder <nkinder@redhat.com> | 2006-11-03 22:33:16 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2006-11-03 22:33:16 +0000 |
commit | cd00618c33892c16160395fea526aa86e2ffc3c4 (patch) | |
tree | 443fc35828d2f2a8ca43a4b7e066bfb4a74d0c66 /install-sh | |
parent | 5963b84bc57a1c403a5edde0b893cadc6b7148aa (diff) | |
download | ds-cd00618c33892c16160395fea526aa86e2ffc3c4.tar.gz ds-cd00618c33892c16160395fea526aa86e2ffc3c4.tar.xz ds-cd00618c33892c16160395fea526aa86e2ffc3c4.zip |
Related: 213352
Summary: built wrapper directory must be created during make.
Diffstat (limited to 'install-sh')
-rwxr-xr-x | install-sh | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -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: |