From f03762a3105da452df9cd549ca2ad2e027aba22a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 5 Jan 2009 11:58:41 +0000 Subject: Remove the BUILD_REVISION define which was apparently never used, and directly use svn_revision in the version output. Also add 0.5 version highlights, while I was at it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8245 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/command.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/command.cc') diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 6d7e20a894..3b9755018f 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -99,7 +99,12 @@ static const char *features[] = { static std::string _get_version_information(void) { std::string result = "This is "; - result += CRAWL " " VERSION " (" VERSION_DETAIL ")."; + result += CRAWL " " VERSION " ("; +#ifdef BUILD_REVISION + result += "r" + number_to_string(svn_revision()) + ", "; +#endif + result += VERSION_DETAIL ")."; + result += "\n\n"; return (result); -- cgit v1.2.3-54-g00ecf