updated makedist

The makedist script now excludes itself and .gitignore when creating a tarball.
This commit is contained in:
William Hubbs 2008-08-02 17:25:17 -05:00
commit 22ea5c4d1d

View file

@ -13,7 +13,9 @@ if [ "$REL" != "v${ver}" ]; then
TIMESTAMP="_p`date +%Y%m%d`"
fi
TARFILE=${PREFIX}${TIMESTAMP}.tar.bz2
TARFILE=${PREFIX}${TIMESTAMP}.tar
git archive --format=tar --prefix=${PREFIX}/ $REL | bzip2 > ${TARFILE}
echo "Produced ${TARFILE}"
git archive --format=tar --prefix=${PREFIX}/ $REL > ${TARFILE}
tar f ${TARFILE} --delete ${PREFIX}/.gitignore --delete ${PREFIX}/makedist
bzip2 ${TARFILE}
echo Produced ${TARFILE}*