#### maintainer targets
+EXTRA_DIST += VERSION
+
+VERSION: dist
+ test "$(shell cat $(top_srcdir)/VERSION)" = "$(shell git describe)" || \
+ echo "$(shell git describe)" > $(top_srcdir)/VERSION
+
meta.TODO:
w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/ToDo?action=print' |\
(read; read; cat) > $(top_srcdir)/TODO
git log --pretty='format:HEADER:%ai %an <%ae>%n%n%s%n' |\
sed -e 's/\(.*\)/ \1/;s/ HEADER:\([-0-9]*\) [0-9:]* [0-9+]* \(.*\)/\1 \2/' > $(top_srcdir)/ChangeLog
-meta: meta.TODO meta.README meta.AUTHORS meta.NEWS meta.ChangeLog
+meta: VERSION meta.TODO meta.README meta.AUTHORS meta.NEWS meta.ChangeLog
release: meta dist
list='$(DIST_ARCHIVES)'; for i in $$list; do \
-AC_INIT(rxpd, 0.2pre1, 'ct@pipapo.org')
+AC_INIT(rxpd, esyscmd(printf "%s" "$(git describe)"), 'ct@pipapo.org')
AC_CONFIG_SRCDIR(src/rxpd_base.c)
AM_INIT_AUTOMAKE
AC_PREREQ(2.59)
TESTING "basic protcol tests" rxpd_client
+version=$(cat $srcdir/../VERSION)
-# this test has to be updated with each new version
TEST "version information" <<END
in: VERSION:
-out: rxpd 0.2pre1
+out: rxpd $version
out: #
out: # Copyright (C)
out: # 2007, Christian Thaeter <ct@pipapo.org>
out: # EXPIRE aged rules from a list.
out: # DUMP rules in a list.
out: # LIST all existing lists.
-out: # VERSION of this rxpd is 0.2pre1.
+out: # VERSION of this rxpd is $version.
out: # HELP is what you see right now.
out: # SHUTDOWN the daemon.
out: #