release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since 4ccd92c was
bff8f9f,
checked in by Nelson Elhage <nelhage@mit.edu>, 15 years ago
|
do-release: Make sure ChangeLog is updated for the new version.
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/sh -e |
---|
2 | |
---|
3 | die() { |
---|
4 | echo "$@" >&2 |
---|
5 | exit 1 |
---|
6 | } |
---|
7 | |
---|
8 | VERS=$(perl -ne 'print $1 if m{^AC_INIT\(\[[^\]]+\],\s*\[([^\]]+)\]}' configure.ac) \ |
---|
9 | || die "Unable to parse barnowl version" |
---|
10 | TAG=barnowl-$VERS |
---|
11 | TGZ="$TAG-src" |
---|
12 | |
---|
13 | if [ "$VERS" != "$(head -1 ChangeLog)" ]; then |
---|
14 | die "No ChangeLog entry for version $VERS, aborting." |
---|
15 | fi |
---|
16 | |
---|
17 | if git cat-file -t "$TAG" > /dev/null 2>&1; then |
---|
18 | die "Error: Object $TAG already exists." |
---|
19 | fi |
---|
20 | |
---|
21 | exittrap() { :; } |
---|
22 | for sig in 1 2 13 15; do trap "exit $(($sig + 128))" $sig; done |
---|
23 | trap 'exittrap' EXIT |
---|
24 | |
---|
25 | git tag -s -m "BarnOwl $VERS" "$TAG" |
---|
26 | |
---|
27 | TMPDIR=$(mktemp -d /tmp/barnowl.XXXXXX) |
---|
28 | |
---|
29 | exittrap() { rm -rf "$TMPDIR"; } |
---|
30 | |
---|
31 | git archive --format=tar --prefix="$TGZ/" "$TAG" | tar -x -C "$TMPDIR" |
---|
32 | |
---|
33 | CODIR=$(pwd) |
---|
34 | cd "$TMPDIR/$TGZ" |
---|
35 | autoreconf -fvi |
---|
36 | cd "$TMPDIR" |
---|
37 | tar czvf "$TGZ.tgz" "$TGZ" |
---|
38 | cd "$CODIR" |
---|
39 | |
---|
40 | mv "$TMPDIR/$TGZ.tgz" . |
---|
41 | rm -rf "$TMPDIR" |
---|
42 | |
---|
43 | exittrap() { :; } |
---|
44 | |
---|
45 | echo "Created release tarball for BarnOwl $VERS in $(pwd)" |
---|
46 | echo "Remember to bump OWL_VERSION_STRING for future development." |
---|
47 | |
---|
48 | COMMIT=$(git rev-parse "$TAG") |
---|
49 | NOW=$(date +"%B %d, %Y") |
---|
50 | cat <<EOF |
---|
51 | * '''$NOW''': BarnOwl $VERS Released. [wiki:Download] it here. or see the [/browser/ChangeLog?rev=$COMMIT ChangeLog] |
---|
52 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.