summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.bld1
-rw-r--r--src/options.cpp5
2 files changed, 4 insertions, 2 deletions
diff --git a/default.bld b/default.bld
index 572e992..f36c76b 100644
--- a/default.bld
+++ b/default.bld
@@ -17,6 +17,7 @@ target "src/version.h"
17"#define VERSION \"$(git describe --abbrev=0)\"\n" 17"#define VERSION \"$(git describe --abbrev=0)\"\n"
18"#define FULLVER \"$(git describe)\"\n" 18"#define FULLVER \"$(git describe)\"\n"
19"#define SHAVER \"$(git log -n1 --pretty=format:%H)\"\n" 19"#define SHAVER \"$(git log -n1 --pretty=format:%H)\"\n"
20"#define TIMEVER \"$(git log -n1 --pretty=format:%aD)\"\n"
20"\n" 21"\n"
21"#endif"); 22"#endif");
22 fh.close(); 23 fh.close();
diff --git a/src/options.cpp b/src/options.cpp
index aa964d2..0483759 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -32,9 +32,10 @@ void Options::parse( int argc, char *argv[] )
32int Options::version( Bu::StrArray aArgs ) 32int Options::version( Bu::StrArray aArgs )
33{ 33{
34 sio << "STAGE v" VERSION " - Simple, Textual, Adventure Game Environment." 34 sio << "STAGE v" VERSION " - Simple, Textual, Adventure Game Environment."
35 << sio.nl; 35 << sio.nl << sio.nl;
36 sio << "Full version: " FULLVER << sio.nl; 36 sio << "Full version: " FULLVER << sio.nl;
37 sio << "Commit id: " SHAVER << sio.nl; 37 sio << "Build date: " TIMEVER << sio.nl;
38// sio << "Commit id: " SHAVER << sio.nl;
38 sio << sio.nl; 39 sio << sio.nl;
39 exit( 0 ); 40 exit( 0 );
40 return 0; 41 return 0;