xbps-src: move wrappers to common/wrappers.
This commit is contained in:
parent
62a643d5c7
commit
0be33d385a
3 changed files with 2 additions and 3 deletions
|
@ -80,9 +80,8 @@ _EOF
|
|||
}
|
||||
|
||||
install_wrappers() {
|
||||
for f in install ldconfig; do
|
||||
install -m0755 ${XBPS_COMMONDIR}/hooks/pre-configure/${f}-wrapper \
|
||||
${XBPS_WRAPPERDIR}/${f}
|
||||
for f in ${XBPS_COMMONDIR}/wrappers/*.sh; do
|
||||
install -m0755 ${f} ${XBPS_WRAPPERDIR}/$(basename ${f%.sh})
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
#!/bin/bash
|
||||
# install-wrapper - run install(1), but never strip or chown
|
||||
set -e
|
||||
|
||||
# taken from install (GNU coreutils) 8.23
|
||||
opts='bcCdDg:m:o:psS:t:TvZ'
|
||||
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' -- "$@")"
|
||||
eval set -- "$parsed"
|
||||
|
||||
iopts=()
|
||||
while :; do
|
||||
case "$1" in
|
||||
-s|--strip)
|
||||
echo "install-wrapper: overriding call to strip(1)." 1>&2
|
||||
iopts+=("$1" --strip-program=true)
|
||||
shift;;
|
||||
--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;;
|
||||
-m|--mode|-S|--suffix|-t|--target-directory|--backup|--context)
|
||||
iopts+=("$1" "$2")
|
||||
shift 2;;
|
||||
--)
|
||||
shift
|
||||
break;;
|
||||
*)
|
||||
echo 'cant happen, report a bug' 1>&2
|
||||
exit 111;;
|
||||
esac
|
||||
done
|
||||
|
||||
exec /usr/bin/install "${iopts[@]}" -- "$@"
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "ldconfig-wrapper: ignoring arguments: $@"
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue