keytable: make it report the proper v4l-utils version
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Nov 2010 16:48:15 +0000 (14:48 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Nov 2010 16:48:15 +0000 (14:48 -0200)
./ir-keytable --version
IR keytable control version 0.8.2-test

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Make.rules
utils/keytable/keytable.c

index 5799de4..9f42790 100644 (file)
@@ -3,7 +3,7 @@ V4L_UTILS_VERSION=0.8.2-test
 # These ones can be overriden from the cmdline
 
 CFLAGS := -g -O1
-CFLAGS += -Wall -Wpointer-arith
+CFLAGS += -Wall -Wpointer-arith -DV4L_UTILS_VERSION='"$(V4L_UTILS_VERSION)"'
 CXXFLAGS := $(CFLAGS)
 CFLAGS += -Wstrict-prototypes -Wmissing-prototypes
 
index 5e3f968..202db35 100644 (file)
@@ -83,7 +83,7 @@ static int parse_code(char *string)
        return -1;
 }
 
-const char *argp_program_version = "IR keytable control version 0.1.0";
+const char *argp_program_version = "IR keytable control version "V4L_UTILS_VERSION;
 const char *argp_program_bug_address = "Mauro Carvalho Chehab <mchehab@redhat.com>";
 
 static const char doc[] = "\nAllows get/set IR keycode/scancode tables\n"