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

repackage.sh

index 0e51e37e07676bb3902d3b670b1fcc385d146f5c..e8535035e43a80c2d602ae13a7571f3ad45e591a 100644 (file)
@@ -11,7 +11,7 @@ set -e
 
 rpmbuild() {
        set -x
-       /usr/bin/rpmbuild --short-circuit --define '_source_payload w9.gzdio' $bconds "$@" || exit
+       /usr/bin/rpmbuild ${TARGET:+--target $TARGET} --short-circuit --define '_source_payload w9.gzdio' "$@" || exit
 }
 
 bconds=$(./builder --show-bconds "$@")
@@ -20,6 +20,12 @@ if [ "$(echo "$bconds" | wc -l)" -gt 1 ]; then
        bconds=""
 fi
 
+SPECFILE="$1"
+tmp=$(awk '/^BuildArch:/ { print $NF}' $SPECFILE)
+if [ "$tmp" ]; then
+       TARGET="$tmp"
+fi
+
 # just create the rpm's if -bb is somewhere in the args
 if [[ *$@* != *-bb* ]]; then
        rpmbuild -bi $bconds "$@"
This page took 0.035276 seconds and 4 git commands to generate.