xbps-src: hooks/script-wrapper: generate the wrappers just once.
This commit is contained in:
parent
c2063e026e
commit
0a1ee2966a
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ generic_wrapper3() {
|
|||
python_wrapper() {
|
||||
local wrapper="$1" version="$2"
|
||||
|
||||
[ -x ${WRAPPERDIR}/${wrapper} ] && return 0
|
||||
cat >>${WRAPPERDIR}/${wrapper}<<_EOF
|
||||
#!/bin/sh
|
||||
if [ "\$1" = "--includes" ]; then
|
||||
|
@ -66,6 +67,7 @@ pkgconfig_wrapper() {
|
|||
if [ ! -x /usr/bin/pkg-config ]; then
|
||||
return 0
|
||||
fi
|
||||
[ -x ${WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config ] && return 0
|
||||
cat >>${WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config<<_EOF
|
||||
#!/bin/sh
|
||||
|
||||
|
|
Loading…
Reference in a new issue