Define VERSION in configure, and add git describe output if available.

The client release version is now defined in configure.in rather than
source/irc.c.  The gitversion.sh script is used to automatically add a
suffix to the version number for versions of the client built from git.

Also removed AC_REVISION() from configure.in, because $Revision$ doesn't
make sense with git.
This commit is contained in:
Kevin Easton
2015-03-16 23:04:43 +11:00
parent aab85f807a
commit 3b80790a31
4 changed files with 27 additions and 21 deletions

View File

@@ -62,11 +62,7 @@ CVS_REVISION(irc_c)
#include <signame.h>
#endif
#ifndef VERSION
const char irc_version[] = "BitchX-1.2.1";
#else
const char irc_version[] = VERSION;
#endif
const char irc_version[] = VERSION;
/* Format of bitchx_numver: MMmmpp
* MM = major version (eg 10 = 1.0)