Whamcloud - gitweb
Exclude mercurial files from the RPM build tree to speed up copy/build.
authorAndreas Dilger <adilger@clusterfs.com>
Wed, 21 Jun 2006 03:59:43 +0000 (23:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 Jun 2006 03:59:43 +0000 (23:59 -0400)
Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
contrib/build-rpm

index 9eca504..9596684 100644 (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 $?