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

Added some useful Anope::Version functions to prevent some files from unnecessarily rebuilding on every make

This commit is contained in:
DukePyrolator
2011-03-13 03:42:30 -04:00
committed by Adam
parent 15a833283b
commit 3fbf39b25d
14 changed files with 71 additions and 61 deletions
+1 -14
View File
@@ -26,7 +26,6 @@
#include "services.h"
#include "timers.h"
#include "modules.h"
#include "version.h"
// getrlimit.
#ifndef _WIN32
@@ -552,16 +551,4 @@ int main(int ac, char **av, char **envp)
}
return 0;
}
Anope::string Anope::Version()
{
return stringify(VERSION_MAJOR) + "." + stringify(VERSION_MINOR) + "." + stringify(VERSION_PATCH) + VERSION_EXTRA + " (" + stringify(VERSION_BUILD) + ")";
}
Anope::string Anope::Build()
{
return "build #" + stringify(BUILD) + ", compiled " + Anope::compiled;
}
}