X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=release%2Fbugs;fp=release%2Fbugs;h=f36a7aa9761ee99d04d3fbea2e0e86a9e6e09028;hb=3aee1ac3a199a40020e204e42ed9a48e2f4e1404;hp=0000000000000000000000000000000000000000;hpb=52cdea653c9b3a7055bca40e4019f599d9291bb6;p=chaz%2Fopenbox diff --git a/release/bugs b/release/bugs new file mode 100755 index 00000000..f36a7aa9 --- /dev/null +++ b/release/bugs @@ -0,0 +1,38 @@ +#!/bin/sh + +help() { + echo "Usage: $0 [lastrelease]" + echo + echo " The revision which should be used for release." + echo " [lastrelease] The revision of the most recent release made." + echo " By default it uses the most recent release-tag." + exit 1 +} + +error() { + echo "error: $1" + exit 1 +} + +test -e "./openbox/openbox.c" || \ + error "must be run from the project's top level directory" + +REV="$1" +test -z "$REV" && help +RELEASE_SHA=$(git rev-parse "$REV") +test $? = 0 || error "revision $REV not found" + +LAST="$2" +if test -z "$LAST"; then + LAST=$(git describe --match 'release-*' $REV) + test $? = 0 || \ + error "unable to find last release" +fi + +#### CHANGELOG ##### +git log --no-merges $LAST..$REV --oneline|egrep '[bB][uU][Gg] #?[0-9]+' +git log --no-merges $LAST..$REV --oneline | \ + perl -n -e'/[bB][uU][Gg] #?([0-9]+)/ && print "#$1, "' +perl -e'print "\b\b \n"' + +exit 0