X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=contrib%2Fbuild-rpm;fp=contrib%2Fbuild-rpm;h=dfa73ad3350a15687ca96fd012f5995169d589c1;hb=b4d143edcd1e85b9d300b22830f9d62b4e3d0aa6;hp=0b06071517b8e1ee0d4734eae9f4dbb2f32741f7;hpb=624e49458eb92a29b4c66743260524768f4442f4;p=tools%2Fe2fsprogs.git diff --git a/contrib/build-rpm b/contrib/build-rpm index 0b06071..dfa73ad 100644 --- a/contrib/build-rpm +++ b/contrib/build-rpm @@ -29,7 +29,7 @@ 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 -EXCLUDE="--exclude .hg* --exclude .pc*" +EXCLUDE="--exclude .hg* --exclude .pc* --exclude .git*" (cd $tmpdir && tar czfh ${builddir}.tar.gz $EXCLUDE $builddir) [ "`rpmbuild --version 2> /dev/null`" ] && RPM=rpmbuild || RPM=rpm