summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make-tarball3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/make-tarball b/tools/make-tarball
index 7fce5e28..aef95d47 100755
--- a/tools/make-tarball
+++ b/tools/make-tarball
@@ -21,12 +21,13 @@ then
else
REVNO=$(bzr revno $ROOT_DIR)
VERSION=$($ROOT_DIR/tools/read-version)
- ARCHIVE_FN="$PWD/cloud-init-$REVNO-$VERSION.tar.gz"
+ ARCHIVE_FN="$PWD/cloud-init-$VERSION-$REVNO.tar.gz"
fi
FILES=$(cd $ROOT_DIR && bzr ls --versioned --recursive)
echo "$FILES" | tar czf $ARCHIVE_FN \
-C "$ROOT_DIR" \
+ --transform "s,^,cloud-init-$VERSION-$REVNO/," \
--no-recursion --files-from -
echo "$ARCHIVE_FN"