From 0a1ee2966aad4570bd30f8851b78225c7cf72b7a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 27 Sep 2014 03:58:09 +0200 Subject: [PATCH] xbps-src: hooks/script-wrapper: generate the wrappers just once. --- common/hooks/pre-configure/02-script-wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/hooks/pre-configure/02-script-wrapper.sh b/common/hooks/pre-configure/02-script-wrapper.sh index 865934ea05a..aa92650bf18 100644 --- a/common/hooks/pre-configure/02-script-wrapper.sh +++ b/common/hooks/pre-configure/02-script-wrapper.sh @@ -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