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