]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - repackage.sh
- updates
[packages/rpm-build-tools.git] / 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.065328 seconds and 4 git commands to generate.