diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-01-29 13:28:17 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-01-29 13:28:17 -0500 |
commit | 3b723ccfa9e94b7f39cc9df80aa80359227d37bd (patch) | |
tree | 7d5310a8d0e01800d2398ad4330f1db7914e592f | |
parent | 42e115e9e948edff061e0689e1afce7acd228ccb (diff) | |
download | cloud-init-3b723ccfa9e94b7f39cc9df80aa80359227d37bd.tar.gz |
add 'make-dist-tarball' just for making a clean tarfile from a tag0.5.2
-rwxr-xr-x | tools/make-dist-tarball | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/make-dist-tarball b/tools/make-dist-tarball new file mode 100755 index 00000000..840fe4c0 --- /dev/null +++ b/tools/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}/ec2-init_${tag}.orig.tar.gz + +cd ${tmpd} && + bzr branch "${topdir}" ./ec2-init-${tag} && + tar czf "${out}" ec2-init-${tag}/ --exclude ec2-init-${tag}/.bzr && + echo "wrote ${out}" |