]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- updates
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 16 Aug 2005 09:13:34 +0000 (09:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    repackage.sh -> 1.2

repackage.sh

index e80c867297e818f73b4821e2537b68ddf337d410..b50819c8ce3aa6c854931c59ece0799f41ff0224 100644 (file)
@@ -8,10 +8,15 @@ set -e
 
 rpmbuild() {
        set -x
+
        # i'd use ./builder to get all the ~/.bcondrc parsing,
     # but builder doesn't understand -bi
 #      ./builder -ncs -nc -nn --opts --short-circuit "$@"
-       command rpmbuild --short-circuit "$@" || exit
+       /usr/bin/rpmbuild --short-circuit  "$@" || exit
 }
-rpmbuild -bi "$@"
-rpmbuild -bb "$@"
+
+# just create the rpm's if -bb is somewhere in the args
+if [[ *$@* != *-bb* ]]; then
+       rpmbuild -bi "$@"
+fi
+rpmbuild -bb --define 'clean %{nil}' "$@"
This page took 0.032435 seconds and 4 git commands to generate.