aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-08 16:48:15 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-11-08 16:48:15 (GMT)
commitd1315dc672f1370df68db78dfb2747df946ba408 (patch)
tree245f103abc3ce98797b0de336c4ec364be9811b0
parent6fef78fa00bd91c93d1fefeedfe509a9ef079da1 (diff)
keytable: make it report the proper v4l-utils version
./ir-keytable --version IR keytable control version 0.8.2-test Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--Make.rules2
-rw-r--r--utils/keytable/keytable.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Make.rules b/Make.rules
index 5799de4..9f42790 100644
--- a/Make.rules
+++ b/Make.rules
@@ -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
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 5e3f968..202db35 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -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"

Privacy Policy