]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- simplify
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 23 Oct 2006 20:07:59 +0000 (20:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    repackage.sh -> 1.8

repackage.sh

index 3fde98d98ab3de9a8cd8024e44321c2b40ab872c..d5e5bfba02527c71382720c246773d13e4b92b6a 100644 (file)
@@ -11,13 +11,13 @@ set -e
 
 rpmbuild() {
        set -x
-       /usr/bin/rpmbuild ${TARGET:+--target $TARGET} --short-circuit --define '_source_payload w9.gzdio' "$@" || exit
+       /usr/bin/rpmbuild ${TARGET:+--target $TARGET} $BCONDS --short-circuit --define '_source_payload w9.gzdio' "$@" || exit
 }
 
-bconds=$(./builder --show-bconds "$@")
+BCONDS=$(./builder --show-bconds "$@")
 # ignore output from older builders whose output is not compatible.
 if [ "$(echo "$bconds" | wc -l)" -gt 1 ]; then
-       bconds=""
+       BCONDS=""
 fi
 
 SPECFILE="$1"
@@ -28,6 +28,6 @@ fi
 
 # just create the rpm's if -bb is somewhere in the args
 if [[ *$@* != *-bb* ]]; then
-       rpmbuild -bi $bconds "$@"
+       rpmbuild -bi "$@"
 fi
-rpmbuild -bb --define 'clean %{nil}' $bconds "$@"
+rpmbuild -bb --define 'clean %{nil}' "$@"
This page took 0.035152 seconds and 4 git commands to generate.