#!/bin/sh
# install - install a program, script, or datafile
-scriptversion=2004-01-12.10
+scriptversion=2004-01-13.14
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# Skip lots of stat calls in the usual case.
if test ! -d "$dstdir"; then
defaultIFS='
- '
+ '
IFS="${IFS-$defaultIFS}"
oIFS=$IFS
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|| {
- echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
- (exit 1); exit
+ echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
+ (exit 1); exit
}
else
: