]> git.ipfire.org Git - thirdparty/cups.git/blob - scripts/testrpm
Fix builds without PPD support.
[thirdparty/cups.git] / scripts / testrpm
1 #!/bin/sh -x
2 #
3 # Test script for making RPMs...
4 #
5
6 # Make sure we are running in the right directory...
7 if test ! -f tools/testrpm; then
8 echo "Run this script from the top-level CUPS source directory, e.g.:"
9 echo ""
10 echo " tools/testrpm [rpmbuild options]"
11 echo ""
12 exit 1
13 fi
14
15 # Strip command-line arguments so we don't create a release tag...
16 args="$*"
17 shift $#
18
19 # Get a snapshot of the current source...
20 . tools/makesrcdist
21
22 # Build the RPM...
23 echo Building rpm...
24 #rm -f /usr/src/redhat/RPMS/i386/cups*.rpm
25 #rm -f /usr/src/redhat/SRPMS/cups*.rpm
26 rpmbuild -ta $args cups-${fileversion}-source.tar.gz