summaryrefslogtreecommitdiff
path: root/tools/testrpm
blob: 74d1449e4af0fdfc79cc1255f8156075be28e46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
#
# "$Id$"
#
# Test script for making RPMs...
#

# Make sure we are running in the right directory...
if test ! -f tools/testrpm; then
        echo "Run this script from the top-level CUPS source directory, e.g.:"
        echo ""
        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

# Build the RPM...
echo Building rpm...
rm -f /usr/src/redhat/RPMS/i386/cups*.rpm
rm -f /usr/src/redhat/SRPMS/cups*.rpm
rpmbuild -ta $args cups-$fileversion-source.tar.bz2

#
# End of "$Id$".
#