mirror of https://github.com/vitalif/e2fsprogs
Exclude mercurial files from the RPM build tree to speed up copy/build.
Signed-off-by: Andreas Dilger <adilger@clusterfs.com>bitmap-optimize
parent
cdfa2ba7a7
commit
11181bbeb6
|
@ -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 $?
|
||||
|
|
Loading…
Reference in New Issue