blob: 3b700b2c8648630109ff5f97b8260eb296f38284 (
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
|
#!/bin/sh -x
#
# 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.gz
|