From 7a8559fe52104feaa1a3453ac6ffa6214d28a4ad Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 19 Apr 2011 22:40:51 +0200 Subject: [PATCH] in theory finish releasechecklistscript Signed-off-by: Nico Schottelius --- doc/dev/releasechecklist | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) mode change 100644 => 100755 doc/dev/releasechecklist diff --git a/doc/dev/releasechecklist b/doc/dev/releasechecklist old mode 100644 new mode 100755 index cbb5bb72..379954e7 --- a/doc/dev/releasechecklist +++ b/doc/dev/releasechecklist @@ -1,19 +1,31 @@ -#!/bin/sh +#!/bin/sh -e + +files="bin/cdist-config doc/changelog" # Stuff to take care of when doing a release echo "Preparing next release" -# adjust version -vi bin/cdist-config - -# adjust release date -vi doc/changelog - -# Import into current version branch -git checkout 1.6 -git merge master - # Ensure documentation builds cleanly ./build.sh clean && ./build.sh man +# get version +version=$(awk -F'=' '/^__cdist_version/ { print $2 }' bin/cdist-config | sed 's/"//g') +# get target branch +branch=${version%.?} + +# adjust version and release date +vi $files + +# Commit stuff +git commit $files + +# Import into current version branch +git checkout $branch +git merge master + +# Publish manpages and sourcecode +./build.sh web +./build.sh pub + +# FIXME: add tagging somewhere!