/***********************************************************************
X3 ChangeLog
-2013-02-18 Alex Schumann <rubin@afternet.org>
- * all: Converted from mercurial to git. (testing email commit messages again)
+2013-02-18 Alex Schumann <rubin@afternet.org>
+ * all: Converted from mercurial to git. (testing email commit messages again)
+ * configure.in: Roll version to 1.8.1
+ * src/version.c.SH: replace hg version string with git one
2013-01-27 Matthew Beeching <jobe@mdbnet.co.uk>
dnl General initialization.
AC_REVISION([$Id$])
AC_PREREQ(2.61)
-AC_INIT([X3],[1.8],[evilnet-devel@lists.sourceforge.net])
+AC_INIT([X3],[1.8.1],[evilnet-devel@lists.sourceforge.net])
CODENAME=X3
AC_CONFIG_HEADERS(src/config.h)
AC_CONFIG_SRCDIR(src/opserv.c)
#! /bin/sh
+#TODO: we should tag our version changes, and use git describe instead of git log.
+
echo "Extracting src/version.c ..."
-if test -f ../.release
-then
- cvs_version=`cat ../.release`
+if [ -d ../.git ]; then
+ if [ -x `which git` ]; then
+ echo "Found git. version is"`git log -1 --pretty=oneline`
+ cvs_version="git:"`git log -1 --pretty=oneline`
+ else
+ echo "No git installed. unknown git revision"
+ cvs_version="unknown"
+ fi
else
- cvs_version=`hg tip --template '{rev}:{node|short} {date|shortdate}'`
+ echo "Not a git repository. leaving revision empty"
+ cvs_version="not git"
fi
+
/bin/cat >version.c <<!SUB!THIS!
/* version.c - CVS Version specific information.
* Copyright 2000-2004 srvx Development Team