summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-07-09 15:49:06 -0400
committerScott Moser <smoser@ubuntu.com>2012-07-09 15:49:06 -0400
commita7e13e1f540019170de0f4fb0e008b703226df77 (patch)
tree12edfc7278254aff47503c50fbe04b9e3914fc50 /tools
parentcf1fa7219724c7192ebfb35e9a0796bf84dd9b26 (diff)
downloadvyos-cloud-init-a7e13e1f540019170de0f4fb0e008b703226df77.tar.gz
vyos-cloud-init-a7e13e1f540019170de0f4fb0e008b703226df77.zip
include ~bzr in make-tarball output tarball and top level dir
output of 'make-tarball' now is tarball with name formatted as: cloud-init-$VERSION~bzr$REVNO.tar.gz Instead of cloud-init-$VERSION-$REVNO.tar.gz The former is desireable for apt at least as the '~' is understood to mean less than. This merges revno 569 and 570 from lp:~harlowja/cloud-init/rework
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make-tarball4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make-tarball b/tools/make-tarball
index 09742dc7..47979f5b 100755
--- a/tools/make-tarball
+++ b/tools/make-tarball
@@ -23,13 +23,13 @@ if [ ! -z "$1" ]; then
else
REVNO=$(bzr revno $ROOT_DIR)
VERSION=$($ROOT_DIR/tools/read-version)
- ARCHIVE_FN="$PWD/cloud-init-$VERSION-$REVNO.tar.gz"
+ ARCHIVE_FN="$PWD/cloud-init-$VERSION~bzr$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/," \
+ --transform "s,^,cloud-init-$VERSION~bzr$REVNO/," \
--no-recursion --files-from -
echo "$ARCHIVE_FN"