#!/bin/sh
#
# release.sh: script to roll a release tarball of darkstat.
-# copyright (c) 2006-2011 Emil Mikulic.
+# copyright (c) 2006-2013 Emil Mikulic.
#
# This is for developer use only and lives in the repo but
# shouldn't end up in a tarball.
#
+# Release checklist:
+# - git tag 3.0.xxx
+# - git push --tags
+# - Update website
+# - Mail announcement to darkstat-announce@googlegroups.com
+# - Update FreeBSD port, eg: http://www.freebsd.org/cgi/query-pr.cgi?pr=181277
+# - Update freecode.com
+#
if [ $# -ne 1 ]; then
echo "usage: $0 3.0.0rc0" >&2
exit 1
acct.h \
addr.c \
addr.h \
+bsd.c \
+bsd.h \
cap.c \
cap.h \
cdefs.h \
localip.h \
ncache.c \
ncache.h \
+now.c \
now.h \
opt.h \
pidfile.c \
run autoheader
run ./config.status
run ./test_headers.sh
+if git status --porcelain | egrep -v '^\?\?' -q; then
+ say ERROR: uncommitted changes:
+ git status
+ exit 1
+fi
run mkdir $PKG
run cp -r $files $PKG/.
run sed -e "/AC_INIT/s/darkstat, [^,)]*/darkstat, $VERSION/" configure.ac > $PKG/configure.ac