hooks/pre-configure/install-wrapper: also drop -o/-g, they break in xbps-uunshare environments.

This commit is contained in:
Christian Neukirchen 2015-04-04 19:50:33 +02:00
parent 6a547353eb
commit 964c0e2b4e

View file

@ -1,5 +1,5 @@
#!/bin/bash
# install-wrapper - run install(1), but never strip
# install-wrapper - run install(1), but never strip or chown
set -e
# taken from install (GNU coreutils) 8.23
@ -8,7 +8,7 @@ longopts='backup::,compare,directory,group:,mode:,owner:,preserve-timestamps,\
strip:,strip-program:,suffix:,target-directory:,no-target-directory,verbose,\
preserve-context,context::,help,version'
parsed="$(getopt -o "$opts" --long "$longopts" -n 'install(wrapper)' -- "$@")"
parsed="$(getopt -o "$opts" --long "$longopts" -n 'install-wrapper' -- "$@")"
eval set -- "$parsed"
iopts=()
@ -21,13 +21,15 @@ while :; do
--strip-program)
echo "install-wrapper: dropping strip program '$2'." 1>&2
shift 2;;
-g|--group|-o|--owner)
echo "install-wrapper: dropping option $1 $2." 1>&2
shift 2;;
-b|-c|-C|--compare|-d|--directory|-D|-p|--preserve-timestamps|\
-T|--no-target-directory|-v|--verbose|--preserve-context|-Z|\
--help|--version)
iopts+=("$1")
shift;;
-g|--group|-m|--mode|-o|--owner|-S|--suffix|-t|--target-directory|\
--backup|--context)
-m|--mode|-S|--suffix|-t|--target-directory|--backup|--context)
iopts+=("$1" "$2")
shift 2;;
--)