mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user