From f7102c1c7fc77313a4105cddf110c208952985eb Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 2 Jun 2016 14:20:07 -0400 Subject: [PATCH] add svi.h --- src/svi.cc | 5 +++-- src/svi.h | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/svi.h diff --git a/src/svi.cc b/src/svi.cc index 421ff3c..5bcff31 100644 --- a/src/svi.cc +++ b/src/svi.cc @@ -1,6 +1,7 @@ #include #include "SvnRunner.h" #include +#include "svi.h" using namespace std; @@ -21,8 +22,8 @@ int main(int argc, char * argv[]) switch (o) { case OPT_VERSION: - printf("version 0.0.0alpha0\n"); - break; + printf(APPLICATION_NAME " version " APPLICATION_VERSION "\n"); + return 0; } } diff --git a/src/svi.h b/src/svi.h new file mode 100644 index 0000000..0f1e28e --- /dev/null +++ b/src/svi.h @@ -0,0 +1,7 @@ +#ifndef SVI_H +#define SVI_H + +#define APPLICATION_NAME "svi" +#define APPLICATION_VERSION "0.0.0alpha0" + +#endif