1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 02:56:38 +02:00

Fix version system so it doesn't cause the entire build tree to get rebuilt just because version.h gets regenerated, thanks to Adam for initial patch.

This commit is contained in:
Naram Qashat
2010-06-28 01:28:51 -04:00
parent 2e4099e9f2
commit 85b07a94d7
7 changed files with 22 additions and 14 deletions
+11
View File
@@ -26,6 +26,7 @@
#include "services.h"
#include "timers.h"
#include "modules.h"
#include "version.h"
// getrlimit.
#ifndef _WIN32
@@ -570,3 +571,13 @@ int main(int ac, char **av, char **envp)
return 0;
}
inline std::string Anope::Version()
{
return stringify(VERSION_MAJOR) + "." + stringify(VERSION_MINOR) + "." + stringify(VERSION_PATCH) + VERSION_EXTRA + " (" + stringify(VERSION_BUILD) + ")";
}
inline std::string Anope::Build()
{
return std::string("build #") + stringify(BUILD) + ", compiled " + compiled;
}