3 # This accepts bsd-style install arguments and makes the appropriate calls
4 # to the System V install.
14 while [ x$1 != x ]; do
19 -m) flags="$flags $1 $2 "
25 -o) flags="$flags -u $2 "
31 -g) flags="$flags $1 $2 "
57 flags="$flags -u root"
65 echo "$0: no input file specified: src $src dst $dst"
71 echo "$0: no destination specified: src $src dst $dst"
76 # set up some variable to be used later
81 # if the destination isn't a directory we'll need to copy it first
85 dstbase=`basename $dst`
86 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" -a "$src" != "./$srcbase" ]
106 cp $src /tmp/$srcbase
109 rmcmd="rm -f /tmp/$srcbase"
112 # do the actual install
114 if [ -f /usr/sbin/install ]
116 installcmd=/usr/sbin/install
117 elif [ -f /etc/install ]
119 installcmd=/etc/install
124 # This rm is commented out because some people want to be able to
125 # install through symbolic links. Uncomment it if it offends you.
127 (cd $srcdir ; $installcmd -f $dst $flags $src)
129 if [ x$dostrip = xstrip ]