summaryrefslogtreecommitdiffstats
path: root/create_tarball
diff options
context:
space:
mode:
Diffstat (limited to 'create_tarball')
-rwxr-xr-xcreate_tarball7
1 files changed, 4 insertions, 3 deletions
diff --git a/create_tarball b/create_tarball
index b954201..f41535c 100755
--- a/create_tarball
+++ b/create_tarball
@@ -159,13 +159,14 @@ if [ ! -e $TARBALL_DIR/$package.tar$TAR_SUFFIX ]; then
echo "Revision: $branch-$(git rev-parse HEAD)" >> .tdescminfo
date +"DateTime: %m/%d/%Y %H:%M" -u -d "@$(git log -1 --pretty=format:"%ct")" >> .tdescminfo
trap "rm $TARBALL_DIR/tar-$$; rm .tdescminfo; exit 1" INT
- find ./ -print0 | LC_ALL=C sort -z | \
+ find ./ | LC_ALL=C sort | \
+ egrep -v '(^|/)(\.git|\.gitmodules)(/|$)' | tr "\n" "\0" | \
tar c --no-recursion --null -T - \
--mode=u+rw,go=rX,a-s \
+ --owner=root --group=users \
--mtime "@$(git log -1 --pretty=format:"%ct")" \
- --owner=root --group=users --exclude .git --exclude .gitmodules \
--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
- --transform "s|^\.\(/\|$\)|$package\1|" ./ | \
+ --transform "s|^\.\(/\|$\)|$package\1|" | \
$COMPRESS -9 >$TARBALL_DIR/tar-$$ && \
mv $TARBALL_DIR/tar-$$ $TARBALL_DIR/$package.tar$TAR_SUFFIX || \
rm $TARBALL_DIR/tar-$$