diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-04 01:12:25 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-04 01:12:25 -0700 |
commit | 90e4545e2e59462786169637fe58b574d07b9ee1 (patch) | |
tree | dc5336d6f153cfc38d380a04bf17bdf2b77530ca | |
parent | f6bdcf2a92d78b5debc85eaf29747ac09e23c530 (diff) | |
download | stage-90e4545e2e59462786169637fe58b574d07b9ee1.tar.gz stage-90e4545e2e59462786169637fe58b574d07b9ee1.tar.bz2 stage-90e4545e2e59462786169637fe58b574d07b9ee1.tar.xz stage-90e4545e2e59462786169637fe58b574d07b9ee1.zip |
date added to version, I like it.
Diffstat (limited to '')
-rw-r--r-- | default.bld | 1 | ||||
-rw-r--r-- | src/options.cpp | 5 |
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[] ) | |||
32 | int Options::version( Bu::StrArray aArgs ) | 32 | int 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; |