all repos — openbox @ 8543e5746c046ff28646fccd8ecd723c54c2ae93

openbox fork - make it a bit more like ryudo

release/email (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

help() {
  echo "Usage: $0 <revision> <version> [lastrelease]"
  echo
  echo "  <revision>    The revision which should be used for release."
  echo "  <version>     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

cat <<EOF > $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"

clean
exit 0