mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
cf11cbdb30
SVN r4 (trunk)
45 lines
920 B
Bash
45 lines
920 B
Bash
#! /bin/sh
|
|
|
|
# $Id: makerpm.in,v 1.7 2004/04/19 23:31:34 helly Exp $
|
|
# M.Boerger <re2c@somabo.de>
|
|
|
|
PREFIX="@PACKAGE_NAME@"
|
|
VERSION="@PACKAGE_VERSION@"
|
|
TARDIR="`basename \`pwd\``"
|
|
RELEASE=${1:-1}
|
|
|
|
echo "Usage:"
|
|
echo "$0 <release>"
|
|
echo
|
|
echo "e.g.:"
|
|
echo "$0"
|
|
echo -n "Building RPM version $VERSION, release: $RELEASE "
|
|
sleep 1 ; echo -n . ; sleep 1 ; echo -n . ; sleep 1 ; echo -n .
|
|
echo
|
|
|
|
TAR=@PACKAGE_TARNAME@-$VERSION.tar.gz
|
|
SPEC=re2c-${VERSION}.spec
|
|
|
|
RPMBASE=/usr/src/redhat
|
|
for i in /usr/src/redhat /usr/src/packages /usr/src/RPM; do
|
|
if test -d $i; then
|
|
RPMBASE=$i
|
|
break
|
|
fi
|
|
done
|
|
|
|
RPMDIR=${RPMBASE}/RPMS
|
|
SPECDIR=${RPMBASE}/SPECS
|
|
SRCDIR=${RPMBASE}/SOURCES
|
|
|
|
make dist
|
|
cp $TAR $SRCDIR
|
|
|
|
cat re2c.spec | sed -e "s/RPM_RELEASE/${RELEASE}/g" > ${SPEC}
|
|
|
|
echo "CP: (`pwd`) cp -a $SPEC $SPECDIR/${SPEC}"
|
|
cp -a $SPEC $SPECDIR/${SPEC}
|
|
#cp -a *.patch $SRCDIR
|
|
cd $SPECDIR
|
|
echo "RPM: rpm -ba ${SPEC}"
|
|
rpmbuild -ba ${SPEC}
|