From a881d6e0e7c4e51ad199c1f1f14b6c574c25686b Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 8 Oct 2014 13:15:30 -0700 Subject: Don't rebuild atcommand.cpp on version changes --- src/map/atcommand.cpp | 14 ++++---------- src/mmo/version.cpp | 5 +++++ src/mmo/version.hpp | 5 +++++ 3 files changed, 14 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 858f617..9b53497 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -24,8 +24,6 @@ #include -#include "../conf/version.hpp" - #include "../compat/nullpo.hpp" #include "../compat/fun.hpp" @@ -4919,14 +4917,10 @@ static ATCE atcommand_source(Session *s, dumb_ptr, ZString) { - clif_displaymessage(s, - "This server code consists of Free Software under GPL3&AGPL3"_s); - clif_displaymessage(s, - "This is commit " VERSION_HASH ", also known as " VERSION_FULL ""_s); - clif_displaymessage(s, - "The version is " VERSION_STRING ""_s); - clif_displaymessage(s, - "For source, see " VENDOR_SOURCE ""_s); + clif_displaymessage(s, VERSION_INFO_HEADER); + clif_displaymessage(s, VERSION_INFO_COMMIT); + clif_displaymessage(s, VERSION_INFO_NUMBER); + clif_displaymessage(s, VERSION_INFO_URL); return ATCE::OKAY; } diff --git a/src/mmo/version.cpp b/src/mmo/version.cpp index 2e337c1..7c63614 100644 --- a/src/mmo/version.cpp +++ b/src/mmo/version.cpp @@ -73,4 +73,9 @@ bool extract(XString str, Version *vers) // It would've been useful during the magic migration. return extract(str, record<'.'>(&vers->major, &vers->minor, &vers->patch)); } + +LString VERSION_INFO_HEADER = "This server code consists of Free Software under GPL3&AGPL3"_s; +LString VERSION_INFO_COMMIT = "This is commit " VERSION_HASH ", also known as " VERSION_FULL ""_s; +LString VERSION_INFO_NUMBER = "The version is " VERSION_STRING ""_s; +LString VERSION_INFO_URL = "For source, see " VENDOR_SOURCE ""_s; } // namespace tmwa diff --git a/src/mmo/version.hpp b/src/mmo/version.hpp index 440dce6..6afcd58 100644 --- a/src/mmo/version.hpp +++ b/src/mmo/version.hpp @@ -90,4 +90,9 @@ extern Version CURRENT_MAP_SERVER_VERSION; extern LString CURRENT_VERSION_STRING; bool extract(XString str, Version *vers); + +extern LString VERSION_INFO_HEADER; +extern LString VERSION_INFO_COMMIT; +extern LString VERSION_INFO_NUMBER; +extern LString VERSION_INFO_URL; } // namespace tmwa -- cgit v1.2.3-60-g2f50