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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user