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-08-25 14:17:11 -0700
commit4889bc95883dd2cb0eb679d381d15385b930bcfa (patch)
tree7a20ea87161e790b84b7f1cd4b0d10010201f995 /test
parentd4d9555eca3048d281d510bd51267ce67142acd6 (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 7aa8aad0a..a0bb1b3f3 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1731,12 +1731,16 @@ static int ParseOptions( int argc, char ** argv )
#define PRESET_EXPORT_FILE 304
#define PRESET_IMPORT 305
#define PRESET_IMPORT_GUI 306
+ #define VERSION 307
+ #define DESCRIBE 308
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 },
@@ -1906,6 +1910,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;