From edb56b166088511fec9f1367831b1978a08d0144 Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 24 May 2008 15:29:52 +0000 Subject: [PATCH] Make it possible to add extra strings to the version number This will be used for the nightly tarballs (perhabs). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1062 726aef4b-f618-498e-8847-2d620e286838 --- main.h | 5 +++++ znc.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.h b/main.h index 226745bb..279ff28a 100644 --- a/main.h +++ b/main.h @@ -12,6 +12,11 @@ // Keep the number in sync with configure.in (and also with configure) #define VERSION 0.057 +// You can add -DVERSION_EXTRA="stuff" to your CXXFLAGS! +#ifndef VERSION_EXTRA +#define VERSION_EXTRA "" +#endif + #ifndef _MODDIR_ #define _MODDIR_ "/usr/lib/znc" #endif diff --git a/znc.cpp b/znc.cpp index 4b9359f6..936cb27f 100644 --- a/znc.cpp +++ b/znc.cpp @@ -77,7 +77,7 @@ CString CZNC::GetTag(bool bIncludeVersion) { char szBuf[128]; memset(szBuf, 0, 128); - snprintf(szBuf, 127, "ZNC %1.3f - http://znc.sourceforge.net", VERSION); + snprintf(szBuf, 127, "ZNC %1.3f"VERSION_EXTRA" - http://znc.sourceforge.net", VERSION); return szBuf; }