Move irssi-version.h generation out of configure and add suport for getting the

date of the last change with svn info/git log.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4906 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-11-13 23:35:48 +00:00 committed by exg
commit 52b506e13a
5 changed files with 19 additions and 16 deletions

View file

@ -698,14 +698,6 @@ if test "x$want_ipv6" = "xyes"; then
AC_MSG_RESULT($have_ipv6)
fi
dnl **
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
dnl **
VERSION_DATE=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $5}' | tr -d '-'`
VERSION_TIME=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $6}' | awk -F: '{printf "%d\n", $1$2}'`
AC_SUBST(VERSION_DATE)
AC_SUBST(VERSION_TIME)
AC_CONFIG_FILES([
Makefile
src/Makefile
@ -734,7 +726,6 @@ scripts/examples/Makefile
docs/Makefile
docs/help/Makefile
docs/help/in/Makefile
irssi-version.h
irssi-config
])