From 2208162840bd69654148c17f514054bedfcfeb97 Mon Sep 17 00:00:00 2001 From: Phil Jackson Date: Fri, 7 May 2010 21:52:59 +0100 Subject: [PATCH] Added mk_rel.bash to help.. mk rels. --- mk_rel.bash | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 mk_rel.bash diff --git a/mk_rel.bash b/mk_rel.bash new file mode 100755 index 00000000..3b206cc3 --- /dev/null +++ b/mk_rel.bash @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -e + +USAGE="usage: ${0##*/} " + +tag="${1}" + +[ ${#} -lt 1 ] && { + echo ${USAGE} >&2 + exit 2 +} + +# does the specified tag exist? +if ! git tag | grep "${tag}"; then + echo "Make sure you've tagged '${tag}'" + exit 3 +fi + +# grab that tag +git co "${tag}" + +# clean up if we need to +[ -f Makefile ] && make distclean + +./autogen.sh + +./configure + +make dist + +git co master