summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NOTES4
-rw-r--r--README.in (renamed from README)2
-rwxr-xr-xrelease28
3 files changed, 29 insertions, 5 deletions
diff --git a/NOTES b/NOTES
index d9920d1..7a125d6 100644
--- a/NOTES
+++ b/NOTES
@@ -25,7 +25,3 @@ itself. Thus, we use __STDC__ (both in h/sysdep.h and in zephyr.h) to
guess whether the compiler will handle const, prototypes, and stdarg.
This is unfortunately not as reliable as using autoconf features like
AC_C_CONST.
-
-The Zephyr system version number is kept in server/version.c, and
-should be updated when releases are made.
-
diff --git a/README b/README.in
index 78c33b2..9011c94 100644
--- a/README
+++ b/README.in
@@ -1,4 +1,4 @@
-This is a 3.0.1 release candidate of the Project Athena Zephyr
+This is version @VERSION@ of the Project Athena Zephyr
notification system.
Zephyr allows users to send messages to other users or to groups of
diff --git a/release b/release
new file mode 100755
index 0000000..caf8bcd
--- /dev/null
+++ b/release
@@ -0,0 +1,28 @@
+#!/bin/sh -x
+
+VERSION=$1
+if test -z "$VERSION"; then
+ echo $0: usage: $0 version
+ exit 1
+fi
+
+if test -n "$(git status --porcelain)"; then
+ echo $0: git status is wordy, you probably want to stash and note your branch
+ exit 2
+fi
+git tag $VERSION -m 'release $VERSION'
+git checkout --detach
+git clean -fxd
+git rm .gitignore
+git rm -r debian
+git rm release
+echo $VERSION > VERSION
+sed -e "s/@VERSION@/$VERSION/" README.in > README
+git rm README.in
+libtoolize -ic
+autoreconf
+git add -A
+git commit -m "release $VERSION"
+git tag release/$VERSION -m "release $VERSION processed for git archive"
+
+git checkout master