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