set hg revision in Gajim version

This commit is contained in:
Yann Leboulanger 2010-08-09 13:09:13 +02:00
parent ea07baeab9
commit b66a3e4c9e
3 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,12 @@
#!/usr/bin/env bash
gajimversion="0.13.90"
if [ -d ".hg" ]; then
hgversion="-$(hexdump -n6 -e'6/1 "%02x"' .hg/dirstate)"
else
hgversion=""
fi
echo "define([AC_PACKAGE_VERSION], [${gajimversion}${hgversion}])" > m4/hgversion.m4
AM_ARGS="--add-missing --gnu --copy"
CONF_ARGS=""
if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then

View File

@ -1,5 +1,5 @@
AC_INIT([Gajim - A Jabber Instant Messager],
[0.13.90],[http://trac.gajim.org/],[gajim])
["version-set-in-hgversion"],[http://trac.gajim.org/],[gajim])
AC_PREREQ([2.59])
AC_CONFIG_HEADER(config.h)

View File

@ -47,3 +47,8 @@ AC_DEFUN([AS_AC_EXPAND],
prefix=$prefix_save
exec_prefix=$exec_prefix_save
])
# Fix autoconf: They don't allow shell variables in AC_INIT
# So we have to define them via m4 to be accepted....
m4_include(m4/hgversion.m4)