quakeforge-old/build_rpm.in

19 lines
475 B
Text
Raw Normal View History

#!/bin/sh -x
version=@QF_VERSION@
temp_dir=/var/tmp
rm -rf ${temp_dir}/quakeforge-${version}
cp -a @srcdir@ ${temp_dir}/quakeforge-${version}
dest_dir=$PWD
cd ${temp_dir}/quakeforge-${version}
# this is needed to ensure there is a makefile
./bootstrap
./configure
make distclean
2000-01-18 04:07:38 +00:00
find . -name '.#*' -o -name '#*#' -print | xargs rm
cd ${temp_dir}
tar zcf ${dest_dir}/quakeforge-${version}.tar.gz quakeforge-${version}
cd ${dest_dir}
rm -rf ${temp_dir}/quakeforge-${version}