]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- do not require specfile being first argument
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 12 Apr 2008 16:45:02 +0000 (16:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    repackage.sh -> 1.27

repackage.sh

index a954ed0026795f08ac24a802deba23166b1b1f13..f71b9eb16645ccc06b49776db9136c4a613e682b 100644 (file)
@@ -28,7 +28,6 @@ rpmbuild() {
        set -x
        /usr/bin/rpmbuild \
                ${TARGET:+--target $TARGET} \
-               $BCONDS \
                --short-circuit \
                --define 'clean %%%{!?__ldconfig:clean}%{?__ldconfig:check} \
                exit 0%{nil}' \
@@ -62,19 +61,14 @@ specdump() {
                shift
        done
        set -x
-       eval rpm-specdump $a
+       eval rpm-specdump $a || echo >&2 $?
 }
 
-specfile="${1%.spec}.spec"; shift
-set -- "$specfile" "$@"
-
 tmp=$(specdump "$@" | awk '$2 == "_target_cpu" {print $3}')
 if [ "$tmp" ]; then
        TARGET="$tmp"
 fi
 
-BCONDS=$(./builder -nn -ncs --show-bcond-args $specfile)
-
 # just create the rpm's if -bb is somewhere in the args
 if [[ *$@* != *-bb* ]]; then
        rpmbuild -bi "$@"
This page took 0.030732 seconds and 4 git commands to generate.