Fix compile failure when X_HAVE_UTF8_STRING is not defined
[openbox.git] / release / email
blobb8dc88184206d239a946edcba6ddabb2acfee54d
1 #!/bin/sh
3 help() {
4 echo "Usage: $0 <revision> <version> [lastrelease]"
5 echo
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."
10 exit 1
13 REV="$1"
14 test -z "$REV" && help
15 VERSION="$2"
16 test -z "$VERSION" && help
17 LAST="$3"
19 . release/common
21 SUBJECT="[RELEASE] Openbox $VERSION"
22 MAILINGLIST=openbox@icculus.org
24 cat <<EOF > $WORKDIR/.email
25 Hello,
27 Openbox $VERSION is now available!
29 Some noteworthy changes are:
30 $CLNOWRAP
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
42 $SHORTLOG
43 EOF
45 if test -z $EDITOR; then
46 nano -w $WORKDIR/.email || error "failed to edit email, set \$EDITOR"
47 else
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"
55 clean
56 exit 0