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."
18 test -e "./openbox/openbox.c" || \
19 error "must be run from the project's top level directory"
22 test -z "$REV" && help
23 RELEASE_SHA=$(git rev-parse "$REV")
24 test $? = 0 || error "revision $REV not found"
27 if test -z "$LAST"; then
28 LAST=$(git describe --match 'release-*' $REV)
30 error "unable to find last release"
35 git log --no-merges $LAST..$REV --oneline|grep '#[0-9]'|cut -d\# -f 2|awk '{printf "#%d, ", $1}'
36 echo | awk '{printf "\b\b \n"}'