2001-02-19 21:15:25 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
version=@VERSION@
|
|
|
|
temp_dir=/var/tmp
|
|
|
|
srcdir=@srcdir@
|
2001-08-01 18:19:36 +00:00
|
|
|
top_srcdir=@top_srcdir@
|
|
|
|
top_builddir=..
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-08-02 23:00:17 +00:00
|
|
|
mkdir -p RPMS/{noarch,i386,i686}
|
2001-08-02 02:49:33 +00:00
|
|
|
make -C $top_builddir changelog
|
2001-08-01 18:19:36 +00:00
|
|
|
make -C $top_builddir dist
|
2001-02-19 21:15:25 +00:00
|
|
|
cat > rpmmacros <<EOF
|
2001-08-02 23:00:17 +00:00
|
|
|
%_topdir $PWD
|
|
|
|
%_rpmdir $PWD/RPMS
|
|
|
|
%_sourcedir $top_builddir
|
|
|
|
%_specdir $PWD
|
|
|
|
%_srcrpmdir $PWD
|
|
|
|
%_builddir $PWD
|
2001-02-19 21:15:25 +00:00
|
|
|
EOF
|
2001-08-01 18:19:36 +00:00
|
|
|
rpm -ba quakeforge.spec --rcfile $srcdir/rpmrc
|
2001-08-02 23:00:17 +00:00
|
|
|
find . -maxdepth 1 -type d -name 'quakeforge-*' -exec rm -rf {} \;
|
|
|
|
find RPMS -name '*.rpm' -exec mv {} . \;
|
|
|
|
rm -rf RPMS
|