From: Elan Ruusamäe Date: Sat, 22 Apr 2006 18:44:56 +0000 (+0000) Subject: - support for disabling distfiles X-Git-Tag: auto/ac/acroread-installer-7_0_5-3 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=refs%2Ftags%2Fauto%2Fti%2Facroread-installer-8_1_2-1;p=packages%2Fadobe-flash.git - support for disabling distfiles Changed files: license-installer.sh -> 1.11 --- diff --git a/license-installer.sh b/license-installer.sh index 31a81f7..07b3cb1 100644 --- a/license-installer.sh +++ b/license-installer.sh @@ -30,7 +30,11 @@ if [ "$1" = "--with" -a "$2" = "license_agreement" ]; then fi fi ( cd $SPECDIR - /usr/bin/builder --define _topdir $tmp -nm -nc -ncs --with license_agreement --target @TARGET_CPU@ @BASE_NAME@.spec + nd= + if [ '@USE_DISTFILES@' = 'no' ]; then + nd=-nd + fi + /usr/bin/builder --define _topdir $tmp $nd -nm -nc -ncs --with license_agreement --target @TARGET_CPU@ @BASE_NAME@.spec if [ "$?" -ne 0 ]; then exit 2 fi