summaryrefslogtreecommitdiffstats
path: root/create_tarball
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:59:33 +0200
commitd8d6594611b0ca874170858f0649795fdb582ff3 (patch)
treeb04d38df4d69be666ea5e1a07ed5c13ed9af472b /create_tarball
parent176dee06cdad0c83dbc9c6226220ef7517745534 (diff)
downloadscripts-d8d6594611b0ca874170858f0649795fdb582ff3.tar.gz
scripts-d8d6594611b0ca874170858f0649795fdb582ff3.zip
create_tarball: Fix wrong path transformation in symlinks
(cherry picked from commit f7f29b7ce2aa3f1b5b93800bfabddb51104d57d1)
Diffstat (limited to 'create_tarball')
-rwxr-xr-xcreate_tarball2
1 files changed, 1 insertions, 1 deletions
diff --git a/create_tarball b/create_tarball
index b80b7e0..ac38f80 100755
--- a/create_tarball
+++ b/create_tarball
@@ -95,7 +95,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-$$