4 echo "Usage: $0 <revision> [lastrelease]"
6 echo " <revision> The revision which should be used for release."
7 echo " [lastrelease] The revision of the most recent release made."
8 echo " By default it uses the most recent release-tag."
17 test -e "./openbox/openbox.c" || \
18 error
"must be run from the project's top level directory"
21 test -z "$REV" && help
22 RELEASE_SHA
=$
(git rev-parse
"$REV")
23 test $?
= 0 || error
"revision $REV not found"
26 if test -z "$LAST"; then
27 LAST
=$
(git describe
--match 'release-*' $REV)
29 error
"unable to find last release"
33 git log
--no-merges $LAST..
$REV --oneline|
egrep '[bB][uU][Gg] #?[0-9]+'
34 git log
--no-merges $LAST..
$REV --oneline | \
35 perl
-n -e'/[bB][uU][Gg] #?([0-9]+)/ && print "#$1, "'
36 perl
-e'print "\b\b \n"'