2 # install-wrapper - run install(1), but never strip or chown
5 # taken from install (GNU coreutils) 8.23
6 opts
='bcCdDg:m:o:psS:t:TvZ'
7 longopts
='backup::,compare,directory,group:,mode:,owner:,preserve-timestamps,\
8 strip:,strip-program:,suffix:,target-directory:,no-target-directory,verbose,\
9 preserve-context,context::,help,version'
11 parsed
="$(getopt -o "$opts" --long "$longopts" -n 'install-wrapper' -- "$@
")"
18 echo "install-wrapper: overriding call to strip(1)." 1>&2
19 iopts
+=("$1" --strip-program=true
)
22 echo "install-wrapper: dropping strip program '$2'." 1>&2
24 -g|
--group|
-o|
--owner)
25 echo "install-wrapper: dropping option $1 $2." 1>&2
27 -b|
-c|
-C|
--compare|
-d|
--directory|
-D|
-p|
--preserve-timestamps|\
28 -T|
--no-target-directory|
-v|
--verbose|
--preserve-context|
-Z|\
32 -m|
--mode|
-S|
--suffix|
-t|
--target-directory|
--backup|
--context)
39 echo 'cant happen, report a bug' 1>&2
44 exec /usr
/bin
/install "${iopts[@]}" -- "$@"