mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
80f2666d09
commit
3007e251a6
@ -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 \
|
||||
|
@ -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)
|
||||
|
@ -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
4
irssi-version.h.in
Normal 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@
|
Loading…
Reference in New Issue
Block a user