xref: /aosp_15_r20/external/libcups/scripts/makerpm (revision 5e7646d21f1134fb0638875d812ef646c12ab91e)
1#!/bin/sh -x
2#
3# Test script for making RPMs...
4#
5
6# Make sure we are running in the right directory...
7if test ! -f scripts/makerpm; then
8        echo "Run this script from the top-level CUPS source directory, e.g.:"
9        echo ""
10        echo "    scripts/makerpm [rpmbuild options]"
11        echo ""
12        exit 1
13fi
14
15# Strip command-line arguments so we don't create a release tag...
16args="$*"
17shift $#
18
19# Get a snapshot of the current source...
20. scripts/makesrcdist
21
22# Build the RPM...
23echo Building rpm...
24#rm -f /usr/src/redhat/RPMS/i386/cups*.rpm
25#rm -f /usr/src/redhat/SRPMS/cups*.rpm
26rpmbuild -ta $args cups-${fileversion}-source.tar.gz
27