Exclude mercurial files from the RPM build tree to speed up copy/build.

Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
bitmap-optimize
Andreas Dilger 2006-06-20 23:59:43 -04:00 committed by Theodore Ts'o
parent cdfa2ba7a7
commit 11181bbeb6
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ cp -sR `pwd`/$currdir $tmpdir/$builddir || exit 1
# Remove any build files from the temporary tarball directory
[ -f $tmpdir/$builddir/Makefile ] && make -C $tmpdir/$builddir distclean
(cd $tmpdir && tar czfh ${builddir}.tar.gz $builddir)
EXCLUDE="--exclude .hg*"
(cd $tmpdir && tar czfh ${builddir}.tar.gz $EXCLUDE $builddir)
[ "`rpmbuild --version 2> /dev/null`" ] && RPM=rpmbuild || RPM=rpm
$RPM --define "_sourcedir `pwd`/$tmpdir" -ba $currdir/e2fsprogs.spec || exit $?