From 22ea5c4d1d5db2d4d24e5a89437fac0d6940edf7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 2 Aug 2008 17:25:17 -0500 Subject: [PATCH] updated makedist The makedist script now excludes itself and .gitignore when creating a tarball. --- makedist | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/makedist b/makedist index 220cf56..56fd8b3 100755 --- a/makedist +++ b/makedist @@ -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}*