From cfb7cda5b05232d014e56f06e0531d8d4dca5658 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 29 Jan 2010 13:28:17 -0500 Subject: add 'make-dist-tarball' just for making a clean tarfile from a tag --- tools/make-dist-tarball | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tools/make-dist-tarball (limited to 'tools') 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 <&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}" -- cgit v1.2.3