summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-05 11:58:41 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-05 11:58:41 +0000
commitf03762a3105da452df9cd549ca2ad2e027aba22a (patch)
tree5e72a9896ae5e3d2354a28537d17ef1165f64826 /crawl-ref/source/command.cc
parent5ed69dea25bb0e803557d8d6984417c8fc45403a (diff)
downloadcrawl-ref-f03762a3105da452df9cd549ca2ad2e027aba22a.tar.gz
crawl-ref-f03762a3105da452df9cd549ca2ad2e027aba22a.zip
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
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc7
1 files changed, 6 insertions, 1 deletions
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 <w>";
- result += CRAWL " " VERSION "</w> (" VERSION_DETAIL ").";
+ result += CRAWL " " VERSION "</w> (";
+#ifdef BUILD_REVISION
+ result += "r" + number_to_string(svn_revision()) + ", ";
+#endif
+ result += VERSION_DETAIL ").";
+
result += "\n\n";
return (result);