Lines Matching +full:- +full:- +full:preserve +full:- +full:paths
3 # install - install a program, script, or datafile
18 # Calling this script install-sh is preferred over install.sh, to prevent
29 # Don't use :- since 4.3BSD and earlier shells don't like it.
30 doit="${DOITPROG-}"
33 # put in absolute paths if you don't have them in your path; or use env. vars.
35 mvprog="${MVPROG-mv}"
36 cpprog="${CPPROG-cp}"
37 chmodprog="${CHMODPROG-chmod}"
38 chownprog="${CHOWNPROG-chown}"
39 chgrpprog="${CHGRPPROG-chgrp}"
40 stripprog="${STRIPPROG-strip}"
41 rmprog="${RMPROG-rm}"
42 mkdirprog="${MKDIRPROG-mkdir}"
51 rmcmd="$rmprog -f"
59 -c) instcmd="$cpprog"
63 -d) dir_arg=true
67 -m) chmodcmd="$chmodprog $2"
72 -o) chowncmd="$chownprog $2"
77 -g) chgrpcmd="$chgrpprog $2"
82 -s) stripcmd="$stripprog"
86 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
90 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
119 if [ -d $dst ]; then
131 if [ -f $src -o -d $src ]
150 if [ -d $dst ]
159 dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
165 if [ ! -d "$dstdir" ]; then
168 IFS="${IFS-${defaultIFS}}"
173 set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
178 while [ $# -ne 0 ] ; do
182 if [ ! -d "${pathcomp}" ] ;
230 trap "rm -f ${dsttmp}" 0 &&
232 # and set any options; do chmod last to preserve setuid bits
245 $doit $rmcmd -f $dstdir/$dstfile &&