summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-08-25 09:48:14 -0700
committerJohn Stebbins <[email protected]>2015-11-09 08:39:18 -0800
commit2ae0de42922185fd1b23751c58d8a1ff671f52be (patch)
tree864229a9ecd20c71b8fd00ba80adce61f2abd20a /test
parent602ede716370c1ca16e784f8008a75c14f77f854 (diff)
build: use git version info instead of svn
Migrate from svn to git. Since our build system automatically generates version info from the svn repo, this needs to change when we move the repo to git.
Diffstat (limited to 'test')
-rw-r--r--test/test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index 42bacc98e..0a9d690de 100644
--- a/test/test.c
+++ b/test/test.c
@@ -3640,12 +3640,16 @@ static int ParseOptions( int argc, char ** argv )
#define QSV_IMPLEMENTATION 297
#define FILTER_NLMEANS 298
#define FILTER_NLMEANS_TUNE 299
+ #define VERSION 300
+ #define DESCRIBE 301
for( ;; )
{
static struct option long_options[] =
{
{ "help", no_argument, NULL, 'h' },
+ { "version", no_argument, NULL, VERSION },
+ { "describe", no_argument, NULL, DESCRIBE },
{ "update", no_argument, NULL, 'u' },
{ "verbose", optional_argument, NULL, 'v' },
{ "no-dvdnav", no_argument, NULL, DVDNAV },
@@ -3788,6 +3792,12 @@ static int ParseOptions( int argc, char ** argv )
case 'h':
ShowHelp();
exit( 0 );
+ case VERSION:
+ printf("HandBrake %s\n", hb_get_version(NULL));
+ exit( 0 );
+ case DESCRIBE:
+ printf("%s\n", hb_get_full_description());
+ exit( 0 );
case 'u':
update = 1;
break;