summaryrefslogtreecommitdiff
path: root/tools/make-tarball
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-07-06 18:02:34 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-07-06 18:02:34 -0700
commit8c484baa3d55d9deef97d6e191a9e420e4fde059 (patch)
tree2f1213f90d4518bf03c5fb741e78532e6055f3ef /tools/make-tarball
parentc7aeea86fb8a17e4402cfc42626dfff2fb04c1a0 (diff)
downloadvyos-cloud-init-8c484baa3d55d9deef97d6e191a9e420e4fde059.tar.gz
vyos-cloud-init-8c484baa3d55d9deef97d6e191a9e420e4fde059.zip
Got this working for 'brpm' again.
Diffstat (limited to 'tools/make-tarball')
-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"