1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-09 06:20:45 +00:00

IRSSI_VERSION_DATE is now parsed from ChangeLog by configure. Also added

IRSSI_VERSION_TIME.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2256 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-15 23:15:05 +00:00 committed by cras
parent 80f2666d09
commit 3007e251a6
4 changed files with 14 additions and 4 deletions

View File

@ -21,7 +21,7 @@ conf_DATA = irssi.conf
themedir = $(datadir)/irssi/themes
theme_DATA = default.theme colorless.theme
noinst_HEADERS = irssi-version.h
noinst_HEADERS = irssi-version.h.in
EXTRA_DIST = \
ChangeLog \

View File

@ -755,6 +755,14 @@ if test "x$want_ipv6" = "xyes"; then
AC_MSG_RESULT($irssi_cv_type_in6_addr)
fi
dnl **
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
dnl **
VERSION_DATE=`head -1 $srcdir/ChangeLog|sed 's/^\(....\)-\(..\)-\(..\).*/\1\2\3/'`
VERSION_TIME=`head -1 $srcdir/ChangeLog|sed 's/^[[^ ]]* \(..\):\(..\).*/\1\2/'`
AC_SUBST(VERSION_DATE)
AC_SUBST(VERSION_TIME)
AC_OUTPUT(
Makefile
src/Makefile
@ -785,6 +793,7 @@ scripts/Makefile
docs/Makefile
docs/help/Makefile
docs/help/in/Makefile
irssi-version.h
stamp.h
irssi.spec
irssi-config)

View File

@ -1,3 +0,0 @@
/* This file is updated daily in CVS - not generated by configure */
#define IRSSI_VERSION "0.7.98.CVS"
#define IRSSI_VERSION_DATE 20011215

4
irssi-version.h.in Normal file
View File

@ -0,0 +1,4 @@
/* automatically created by configure */
#define IRSSI_VERSION "@VERSION@"
#define IRSSI_VERSION_DATE @VERSION_DATE@
#define IRSSI_VERSION_TIME @VERSION_TIME@