From 90e4545e2e59462786169637fe58b574d07b9ee1 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 4 Jan 2012 01:12:25 -0700 Subject: date added to version, I like it. --- default.bld | 1 + 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" "#define VERSION \"$(git describe --abbrev=0)\"\n" "#define FULLVER \"$(git describe)\"\n" "#define SHAVER \"$(git log -n1 --pretty=format:%H)\"\n" +"#define TIMEVER \"$(git log -n1 --pretty=format:%aD)\"\n" "\n" "#endif"); 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[] ) int Options::version( Bu::StrArray aArgs ) { sio << "STAGE v" VERSION " - Simple, Textual, Adventure Game Environment." - << sio.nl; + << sio.nl << sio.nl; sio << "Full version: " FULLVER << sio.nl; - sio << "Commit id: " SHAVER << sio.nl; + sio << "Build date: " TIMEVER << sio.nl; +// sio << "Commit id: " SHAVER << sio.nl; sio << sio.nl; exit( 0 ); return 0; -- cgit v1.2.3