From: ddennedy Date: Thu, 23 Oct 2008 05:47:20 +0000 (+0000) Subject: inigo.c: added -version option X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=483f80859a847de0a69c2d8563cebd9242d9c618;p=melted inigo.c: added -version option git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1194 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/inigo/Makefile b/src/inigo/Makefile index 0e80dbf..174a5c9 100644 --- a/src/inigo/Makefile +++ b/src/inigo/Makefile @@ -5,7 +5,7 @@ TARGET = inigo OBJS = inigo.o \ io.o -CFLAGS += -I.. $(RDYNAMIC) +CFLAGS += -I.. $(RDYNAMIC) -DVERSION=\"$(version)\" LDFLAGS += -L../framework -lmlt diff --git a/src/inigo/inigo.c b/src/inigo/inigo.c index 5adfc44..6062dcb 100644 --- a/src/inigo/inigo.c +++ b/src/inigo/inigo.c @@ -1,6 +1,6 @@ /* * inigo.c -- MLT command line utility - * Copyright (C) 2002-2003 Ushodaya Enterprises Limited + * Copyright (C) 2002-2008 Ushodaya Enterprises Limited * Author: Charles Yates * * This program is free software; you can redistribute it and/or modify @@ -396,6 +396,15 @@ query_all: } goto exit_factory; } + else if ( !strcmp( argv[ i ], "-version" ) || !strcmp( argv[ i ], "--version" ) ) + { + fprintf( stderr, "MLT inigo " VERSION "\n" + "Copyright (C) 2002-2008 Ushodaya Enterprises Limited\n" + "This is free software; see the source for copying conditions. There is NO\n" + "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" + ); + goto exit_factory; + } } // Create profile if not set explicitly @@ -495,6 +504,7 @@ query_all: fprintf( stderr, "Usage: inigo [ -profile name ]\n" " [ -query [ consumers | filters | producers | transitions |\n" " type=identifer ] ]\n" + " [ -version ]\n" " [ -serialise [ filename.inigo ] ]\n" " [ -group [ name=value ]* ]\n" " [ -consumer id[:arg] [ name=value ]* [ silent=1 ] [ progress=1 ] ]\n"