4 # This accepts bsd-style install arguments and makes the appropriate calls
5 # to the System V install.
6 # $XConsortium: bsdinst.sh /main/8 1996/09/28 16:16:11 rws $
15 while [ x$1 != x ]; do
20 -m) flags="$flags $1 $2 "
26 -o) flags="$flags -u $2 "
32 -g) flags="$flags $1 $2 "
58 flags="$flags -u root"
66 echo "$0: no input file specified"
72 echo "$0: no destination specified"
77 # set up some variable to be used later
82 # if the destination isn't a directory we'll need to copy it first
86 dstbase=`basename $dst`
88 rmcmd="rm -f /tmp/$dstbase"
91 dst="`echo $dst | sed 's,^\(.*\)/.*$,\1,'`"
99 # If the src file has a directory, copy it to /tmp to make install happy
101 srcbase=`basename $src`
103 if [ "$src" != "$srcbase" ] && [ "$src" != "./$srcbase" ]
105 cp $src /tmp/$srcbase
108 rmcmd="rm -f /tmp/$srcbase"
111 # do the actual install
113 if [ -f /usr/sbin/install ]
115 installcmd=/usr/sbin/install
116 elif [ -f /etc/install ]
118 installcmd=/etc/install
123 # This rm is commented out because some people want to be able to
124 # install through symbolic links. Uncomment it if it offends you.
125 # rm -f $dst/$srcbase
126 (cd $srcdir ; $installcmd -f $dst $flags $src)
128 if [ x$dostrip = xstrip ]