X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=release%2Femail;fp=release%2Femail;h=7fa9e5753112bff28127b9ba01f1bfe16cce7c21;hb=3aee1ac3a199a40020e204e42ed9a48e2f4e1404;hp=0000000000000000000000000000000000000000;hpb=52cdea653c9b3a7055bca40e4019f599d9291bb6;p=chaz%2Fopenbox diff --git a/release/email b/release/email new file mode 100755 index 00000000..7fa9e575 --- /dev/null +++ b/release/email @@ -0,0 +1,63 @@ +#!/bin/sh + +help() { + echo "Usage: $0 [lastrelease]" + echo + echo " The revision which should be used for release." + echo " The version of the release." + echo " [lastrelease] The revision of the most recent release made." + echo " By default it uses the most recent release-tag." + exit 1 +} + +REV="$1" +test -z "$REV" && help +VERSION="$2" +test -z "$VERSION" && help +LAST="$3" + +. release/common + +SUBJECT="[RELEASE] Openbox $VERSION" +MAILINGLIST=openbox@icculus.org +MIKACHU=mikachu@icculus.org + +cat < $WORKDIR/.email +Hello, + +Openbox $VERSION is now available! + +Some noteworthy changes are: +$CLNOWRAP + +======== Download ======== + +Download links are here: http://openbox.org/wiki/Openbox:Download + +======== Commits ======== + +The following is a full list of commits appearing in this release. +You can see the full commits here: http://git.openbox.org/?p=dana/openbox.git;a=shortlog;h=refs/tags/release-$VERSION + + +$SHORTLOG +EOF + +if test -z $EDITOR; then + nano -w $WORKDIR/.email || error "failed to edit email, set \$EDITOR" +else + $EDITOR $WORKDIR/.email || error "failed to edit email with \$EDTIOR" +fi + +test -e $WORKDIR/.email || error "email file disappeared" +cat $WORKDIR/.email | mail -s "$SUBJECT" "$MAILINGLIST" || \ + error "mail to $MAILINGLIST failed" + +echo "Hi Mikachu, + +Please update the freshmeat.net Openbox stuff for $VERSION. Thanks!" | \ +mail -s "Freshmeat.net for Openbox $VERSION" "$MIKACHU" || \ + error "mail to $MIKACHU failed" + +clean +exit 0