- bei CVS-Versionen wird nun das Datum der letzten CVS-Aenderung angezeigt,
Versionsnummer entsprechend angepasst.
This commit is contained in:
parent
5eaf15574a
commit
25f32ce8b8
|
@ -9,7 +9,7 @@
|
|||
# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
#
|
||||
# $Id: configure.in,v 1.61 2002/10/01 09:57:08 alex Exp $
|
||||
# $Id: configure.in,v 1.62 2002/10/07 21:16:12 alex Exp $
|
||||
#
|
||||
|
||||
# -- Initialisierung --
|
||||
|
@ -18,7 +18,7 @@ AC_INIT
|
|||
AC_PREREQ(2.50)
|
||||
AC_CANONICAL_TARGET
|
||||
AC_CONFIG_SRCDIR(src/config.h.in)
|
||||
AM_INIT_AUTOMAKE(ngircd,CurrentCVS)
|
||||
AM_INIT_AUTOMAKE(ngircd,CVSHEAD)
|
||||
AM_CONFIG_HEADER(src/config.h)
|
||||
|
||||
# -- Templates fuer config.h --
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
#
|
||||
# $Id: Makefile.am,v 1.27 2002/09/07 18:06:29 alex Exp $
|
||||
# $Id: Makefile.am,v 1.28 2002/10/07 21:16:13 alex Exp $
|
||||
#
|
||||
|
||||
AUTOMAKE_OPTIONS = ../portab/ansi2knr
|
||||
|
@ -34,7 +34,7 @@ noinst_HEADERS = ngircd.h channel.h client.h conf.h conn.h hash.h irc.h \
|
|||
messages.h defines.h
|
||||
|
||||
clean-local:
|
||||
rm -f check-version check-help lint.out
|
||||
rm -f check-version check-help lint.out cvs-version.*
|
||||
|
||||
maintainer-clean-local:
|
||||
rm -f Makefile Makefile.in
|
||||
|
@ -60,6 +60,15 @@ lint:
|
|||
fi; \
|
||||
done;
|
||||
|
||||
ngircd.c: cvs-date cvs-version.h
|
||||
|
||||
cvs-date:
|
||||
grep VERSION $(srcdir)/../config.h | grep "CVS" \
|
||||
&& echo "#define CVSDATE \"$$( grep "\$$Id" *.c *.h | awk "{ print \$$6 }" | sort | tail -n 1 )\"" > $(srcdir)/cvs-version.new \
|
||||
|| echo "" > $(srcdir)/cvs-version.new
|
||||
diff $(srcdir)/cvs-version.h $(srcdir)/cvs-version.new \
|
||||
|| cp $(srcdir)/cvs-version.new $(srcdir)/cvs-version.h
|
||||
|
||||
TESTS = check-version check-help
|
||||
|
||||
# -eof-
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: ngircd.c,v 1.55 2002/10/03 21:49:59 alex Exp $
|
||||
* $Id: ngircd.c,v 1.56 2002/10/07 21:16:13 alex Exp $
|
||||
*
|
||||
* ngircd.c: Hier beginnt alles ;-)
|
||||
*/
|
||||
|
@ -35,6 +35,7 @@
|
|||
#include "client.h"
|
||||
#include "channel.h"
|
||||
#include "conf.h"
|
||||
#include "cvs-version.h"
|
||||
#include "defines.h"
|
||||
#include "lists.h"
|
||||
#include "log.h"
|
||||
|
@ -319,8 +320,12 @@ GLOBAL CHAR *
|
|||
NGIRCd_Version( VOID )
|
||||
{
|
||||
STATIC CHAR version[126];
|
||||
|
||||
|
||||
#ifdef CVSDATE
|
||||
sprintf( version, "%s %s(%s)-%s", PACKAGE, VERSION, CVSDATE, NGIRCd_VersionAddition( ));
|
||||
#else
|
||||
sprintf( version, "%s %s-%s", PACKAGE, VERSION, NGIRCd_VersionAddition( ));
|
||||
#endif
|
||||
return version;
|
||||
} /* NGIRCd_Version */
|
||||
|
||||
|
|
Loading…
Reference in New Issue