]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # | |
3 | # "$Id$" | |
4 | # | |
5 | # Test script for making RPMs... | |
6 | # | |
7 | ||
8 | # Make sure we are running in the right directory... | |
9 | if test ! -f tools/testrpm; then | |
10 | echo "Run this script from the top-level CUPS source directory, e.g.:" | |
11 | echo "" | |
12 | echo " tools/testrpm [rpmbuild options]" | |
13 | echo "" | |
14 | exit 1 | |
15 | fi | |
16 | ||
17 | # Strip command-line arguments so we don't create a release tag... | |
18 | args="$*" | |
19 | shift $# | |
20 | ||
21 | # Get a snapshot of the current source... | |
22 | . tools/makesrcdist | |
23 | ||
24 | # Build the RPM... | |
25 | echo Building rpm... | |
26 | rm -f /usr/src/redhat/RPMS/i386/cups*.rpm | |
27 | rm -f /usr/src/redhat/SRPMS/cups*.rpm | |
28 | rpmbuild -ta $args cups-$fileversion-source.tar.bz2 | |
29 | ||
30 | # | |
31 | # End of "$Id$". | |
32 | # |