more improvements

This commit is contained in:
Bill Currie 2001-08-02 23:00:17 +00:00
parent b455458629
commit e236dd8842

View file

@ -6,12 +6,18 @@ srcdir=@srcdir@
top_srcdir=@top_srcdir@ top_srcdir=@top_srcdir@
top_builddir=.. top_builddir=..
rm -rf BUILD SPECS RPMS SOURCES SRPMS mkdir -p RPMS/{noarch,i386,i686}
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
make -C $top_builddir changelog make -C $top_builddir changelog
make -C $top_builddir dist make -C $top_builddir dist
mv $top_builddir/quakeforge-${version}.tar.gz SOURCES
cat > rpmmacros <<EOF cat > rpmmacros <<EOF
%_topdir $PWD %_topdir $PWD
%_rpmdir $PWD/RPMS
%_sourcedir $top_builddir
%_specdir $PWD
%_srcrpmdir $PWD
%_builddir $PWD
EOF EOF
rpm -ba quakeforge.spec --rcfile $srcdir/rpmrc rpm -ba quakeforge.spec --rcfile $srcdir/rpmrc
find . -maxdepth 1 -type d -name 'quakeforge-*' -exec rm -rf {} \;
find RPMS -name '*.rpm' -exec mv {} . \;
rm -rf RPMS