summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-04-22 14:56:07 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-04-22 14:56:07 +0200
commitf7f29b7ce2aa3f1b5b93800bfabddb51104d57d1 (patch)
tree3849aaea63400163d1ca32bb3d08c596e96b0002
parentf18522cfd53fcb2cc2c60d0458dee44a783d98b2 (diff)
downloadscripts-f7f29b7ce2aa3f1b5b93800bfabddb51104d57d1.tar.gz
scripts-f7f29b7ce2aa3f1b5b93800bfabddb51104d57d1.zip
create_tarball: Fix wrong path transformation in symlinks
-rwxr-xr-xcreate_tarball2
1 files changed, 1 insertions, 1 deletions
diff --git a/create_tarball b/create_tarball
index 4ae9d1a..a67c892 100755
--- a/create_tarball
+++ b/create_tarball
@@ -88,7 +88,7 @@ echo "Package name: $package"
if [ ! -e $TARBALL_DIR/$package.tar.$TAR_SUFFIX ]; then
echo "Creating tarball in $TARBALL_DIR."
trap "rm $TARBALL_DIR/tar-$$; exit 1" INT
- tar c --owner=root --group=users --exclude .git --exclude .gitmodules --transform "s|^\.|$package|" ./ | \
+ tar c --owner=root --group=users --exclude .git --exclude .gitmodules --transform "s|^\.\(/\|$\)|$package\1|" ./ | \
$COMPRESS -9 >$TARBALL_DIR/tar-$$ && \
mv $TARBALL_DIR/tar-$$ $TARBALL_DIR/$package.tar.$TAR_SUFFIX || \
rm $TARBALL_DIR/tar-$$