From d1188236f2e731b0a6d59bb2abaa218d5dc8fd60 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:05:26 +0000 Subject: Move VERSION/REVISION to their own header to avoid needless rebuilds on update git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11561 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 13 +++++++++---- src/inspircd.cpp | 2 +- src/server.cpp | 1 + 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 09dbafd2d..06cc0c78c 100755 --- a/configure +++ b/configure @@ -1035,12 +1035,9 @@ sub writefiles { #define CONFIG_FILE "$config{CONFIG_DIR}/inspircd.conf" #define MOD_PATH "$config{MODULE_DIR}" -#define VERSION "$version" -#define REVISION "$revision2" #define SOMAXCONN_S "$config{_SOMAXCONN}" #define OPTIMISATION $config{OPTIMITEMP} #define LIBRARYDIR "$config{LIBRARY_DIR}" -#define SYSTEM "$incos" #define ENTRYPOINT int main(int argc, char** argv) EOF @@ -1123,7 +1120,15 @@ print FILEHANDLE "#define MAXBUF " . ($config{MAXBUF}+2) . "\n"; EOF close(FILEHANDLE); - for my $file (qw(include/inspircd_config.h include/inspircd_se_config.h)) { + open(FILEHANDLE, ">include/inspircd_version.h.tmp"); + print FILEHANDLE < #ifndef WIN32 diff --git a/src/server.cpp b/src/server.cpp index ab863f1a3..c5223561a 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -16,6 +16,7 @@ #include #include "exitcodes.h" #include "inspircd.h" +#include "inspircd_version.h" void InspIRCd::SignalHandler(int signal) -- cgit v1.2.3