Don't add 7zip to tarball.

This commit is contained in:
Felix Kauselmann 2014-08-24 15:04:58 +02:00
parent f84db8b4fc
commit 96c175889e

View File

@ -1,15 +1,19 @@
#! /bin/bash #! /bin/bash
#script to create a source tarball for YACReader distribution and packaging #script to create a source tarball for YACReader distribution and packaging
YACVERSION=7.2.0 YACVERSION=7.2.0
if [ -f Makefile ]
if [ ! -f "yacreader-${YACVERSION}-src.tar.xz" ] then
make distclean
fi
if [ ! -f "yacreader_${YACVERSION}-src.tar.xz" ]
then then
echo "Building source tarball" echo "Building source tarball"
else else
echo "Updating source tarball" echo "Updating source tarball"
rm yacreader-${YACVERSION}-src.tar* #delete old tarball, since tar can't update compressed archives rm yacreader_${YACVERSION}-src.tar* #delete old tarball, since tar can't update compressed archives
fi fi
#use --exclude to make sure we get a pristine tar
tar cfJ yacreader-${YACVERSION}-src.tar.xz --exclude-vcs --exclude-vcs-ignores --exclude 'dependencies' \ #might not work out of the box with bsdtar!
--exclude 'yacreader*tar*' ./* --transform s/./yacreader-${YACVERSION}/ tar cfJ yacreader_${YACVERSION}-src.tar.xz --exclude '*.rej' --exclude '*.orig' --exclude '*.gch' --exclude 'dependencies' \
md5sum yacreader-${YACVERSION}-src.tar.xz > yacreader-${YACVERSION}-src.tar.xz.md5sum --exclude 'yacreader*tar*' --exclude '.hg*' --exclude 'libp7zip' --exclude 'lib7zip' ./* --transform s/./yacreader_${YACVERSION}/
md5sum yacreader_${YACVERSION}-src.tar.xz > yacreader_${YACVERSION}-src.tar.xz.md5sum