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() {
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue