diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-25 12:28:59 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-25 12:28:59 -0700 |
commit | 6d74afcd0e11de5cb56623d9121472e9212e8481 (patch) | |
tree | 9256187f8e4a5b3e6e9212105c87a2de187f68a9 /packages/make-dist-tarball | |
parent | ffe4cde6d3fd95131b4434ca2d88af469dacfd51 (diff) | |
download | vyos-cloud-init-6d74afcd0e11de5cb56623d9121472e9212e8481.tar.gz vyos-cloud-init-6d74afcd0e11de5cb56623d9121472e9212e8481.zip |
1. Moving around the packages dir.
2. Adjusting the bddep shell script
3. Starting to add a brpm
Diffstat (limited to 'packages/make-dist-tarball')
-rwxr-xr-x | packages/make-dist-tarball | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/make-dist-tarball b/packages/make-dist-tarball new file mode 100755 index 00000000..622283bd --- /dev/null +++ b/packages/make-dist-tarball @@ -0,0 +1,25 @@ +#!/bin/sh + +Usage() { + cat <<EOF +Usage: ${0##*/} version + make a tarball of 'version' + must be in a bzr directory, and 'version' must be a tag + +EOF +} + +topdir="../$PWD" +tag=${1} + +[ -n "$tag" ] || { Usage 1>&2 ; exit 1; } + +tmpd=$(mktemp -d ); +trap "rm -Rf '${tmpd}'" 0 + +out=${topdir}/cloud-init-${tag}.tar.gz + +cd ${tmpd} && + bzr branch -r "tag:${tag}" "${topdir}" ./cloud-init-${tag} && + tar czf "${out}" cloud-init-${tag}/ --exclude cloud-init-${tag}/.bzr && + echo "Wrote ${out}" |