add svi.h

This commit is contained in:
Josh Holtrop 2016-06-02 14:20:07 -04:00
parent b530c82dca
commit f7102c1c7f
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#include <iostream>
#include "SvnRunner.h"
#include <getopt.h>
#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;
}
}

7
src/svi.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef SVI_H
#define SVI_H
#define APPLICATION_NAME "svi"
#define APPLICATION_VERSION "0.0.0alpha0"
#endif