summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-07-09 15:42:20 -0400
committerScott Moser <smoser@ubuntu.com>2012-07-09 15:42:20 -0400
commitcf1fa7219724c7192ebfb35e9a0796bf84dd9b26 (patch)
tree9c63cfe2ec80ca9be8db812b3e74d848358ad9fa /tools
parent7cd3e340264365c2e968b72cce78db9ff74b24a7 (diff)
parent8c484baa3d55d9deef97d6e191a9e420e4fde059 (diff)
downloadvyos-cloud-init-cf1fa7219724c7192ebfb35e9a0796bf84dd9b26.tar.gz
vyos-cloud-init-cf1fa7219724c7192ebfb35e9a0796bf84dd9b26.zip
get 'brpm' working again. update make-tarball to have a top level dir.
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 7fdeb7df..09742dc7 100755
--- a/tools/make-tarball
+++ b/tools/make-tarball
@@ -23,12 +23,13 @@ if [ ! -z "$1" ]; 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"