4 echo "Usage: $0 <revision> <version> [lastrelease]"
6 echo " <revision> The revision which should be used for release."
7 echo " <version> The version of the release."
8 echo " [lastrelease] The revision of the most recent release made."
9 echo " By default it uses the most recent release-tag."
14 test -z "$REV" && help
16 test -z "$VERSION" && help
21 SUBJECT
="[RELEASE] Openbox $VERSION"
22 MAILINGLIST
=openbox@icculus.org
24 cat <<EOF > $WORKDIR/.email
27 Openbox $VERSION is now available!
29 Some noteworthy changes are:
32 ======== Download ========
34 Download links are here: http://openbox.org/wiki/Openbox:Download
36 ======== Commits ========
38 The following is a full list of commits appearing in this release.
39 You can see the full commits here: http://git.openbox.org/?p=dana/openbox.git;a=shortlog;h=refs/tags/release-$VERSION
45 if test -z $EDITOR; then
46 nano
-w $WORKDIR/.email || error
"failed to edit email, set \$EDITOR"
48 $EDITOR $WORKDIR/.email || error
"failed to edit email with \$EDTIOR"
51 test -e $WORKDIR/.email || error
"email file disappeared"
52 cat $WORKDIR/.email |
mail -s "$SUBJECT" "$MAILINGLIST" || \
53 error
"mail to $MAILINGLIST failed"