]> git.sesse.net Git - mlt/commitdiff
inigo.c: added -version option
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 23 Oct 2008 05:47:20 +0000 (05:47 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 23 Oct 2008 05:47:20 +0000 (05:47 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1194 d19143bc-622f-0410-bfdd-b5b2a6649095

src/inigo/Makefile
src/inigo/inigo.c

index 0e80dbfb1a1039d7472a35ccb2808f02893ea705..174a5c932a2768c8cd02e3770a5e7c32fe0455ef 100644 (file)
@@ -5,7 +5,7 @@ TARGET = inigo
 OBJS = inigo.o \
           io.o
 
-CFLAGS += -I.. $(RDYNAMIC)
+CFLAGS += -I.. $(RDYNAMIC) -DVERSION=\"$(version)\"
 
 LDFLAGS += -L../framework -lmlt 
 
index 5adfc445f8a56fb66ca2ac813de919ad56e799bc..6062dcb0639b8ea0292b9b31f60e2f1606bafa07 100644 (file)
@@ -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 <charles.yates@pandora.be>
  *
  * 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"