]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - tools/testrpm
Load cups into easysw/current.
[thirdparty/cups.git] / tools / testrpm
index 047200ef7e992dd2f997c4545d37f09dc3c9603a..74d1449e4af0fdfc79cc1255f8156075be28e46e 100755 (executable)
@@ -9,11 +9,15 @@
 if test ! -f tools/testrpm; then
         echo "Run this script from the top-level CUPS source directory, e.g.:"
         echo ""
-        echo "    tools/testrpm"
+        echo "    tools/testrpm [rpmbuild options]"
         echo ""
         exit 1
 fi
 
+# Strip command-line arguments so we don't create a release tag...
+args="$*"
+shift $#
+
 # Get a snapshot of the current source...
 . tools/makesrcdist
 
@@ -21,7 +25,7 @@ fi
 echo Building rpm...
 rm -f /usr/src/redhat/RPMS/i386/cups*.rpm
 rm -f /usr/src/redhat/SRPMS/cups*.rpm
-rpmbuild -ta cups-$fileversion-source.tar.bz2
+rpmbuild -ta $args cups-$fileversion-source.tar.bz2
 
 #
 # End of "$Id$".