]> git.ipfire.org Git - thirdparty/cups.git/blame - tools/testrpm
Changelog.
[thirdparty/cups.git] / tools / testrpm
CommitLineData
b8c01319 1#!/bin/sh
2#
e43e7922 3# "$Id$"
4#
b8c01319 5# Test script for making RPMs...
6#
7
55850ccd 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 ""
046285fd 12 echo " tools/testrpm [rpmbuild options]"
55850ccd 13 echo ""
14 exit 1
15fi
16
046285fd 17# Strip command-line arguments so we don't create a release tag...
18args="$*"
19shift $#
20
e43e7922 21# Get a snapshot of the current source...
22. tools/makesrcdist
b8c01319 23
e43e7922 24# Build the RPM...
b8c01319 25echo Building rpm...
f98ac19a 26rm -f /usr/src/redhat/RPMS/i386/cups*.rpm
27rm -f /usr/src/redhat/SRPMS/cups*.rpm
046285fd 28rpmbuild -ta $args cups-$fileversion-source.tar.bz2
e43e7922 29
30#
31# End of "$Id$".
32#