summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-09-29 05:48:26 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-29 05:48:26 +0000
commit84027120ee4e4a5dad1dc88509902152c688842e (patch)
treeeb560acc5780ff35ba0bd28f5d86d9e9b4eb93b9
parente08cdcae4a8ba9a3c2bd2e7064f5457a71939aab (diff)
downloadmediapointer-dvb-s2-84027120ee4e4a5dad1dc88509902152c688842e.tar.gz
mediapointer-dvb-s2-84027120ee4e4a5dad1dc88509902152c688842e.tar.bz2
2-apps: fix generation of parse.h
From: Andreas Oberritter <obi@linuxtv.org> Here's a fix for v4l2-apps/util/Makefile: It uses echo -e, which is not portable across different shell implementations. I replaced it with printf. That's a common problem on Ubuntu, where dash is used instead of bash as the default shell. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--v4l2-apps/util/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/v4l2-apps/util/Makefile b/v4l2-apps/util/Makefile
index dcef94e0f..0a28e7da9 100644
--- a/v4l2-apps/util/Makefile
+++ b/v4l2-apps/util/Makefile
@@ -42,8 +42,8 @@ include ../Make.rules
parse.h: $(KERNEL_DIR)/include/linux/input.h
@echo generating parse.h
- @echo -en "struct parse_key {\n\tchar *name;\n\tunsigned int value;\n} " >parse.h
- @echo -en "keynames[] = {\n" >>parse.h
+ @printf "struct parse_key {\n\tchar *name;\n\tunsigned int value;\n} " >parse.h
+ @printf "keynames[] = {\n" >>parse.h
@more $(KERNEL_DIR)/include/linux/input.h |perl -n \
-e 'if (m/^\#define\s+(KEY_[^\s]+)\s+(0x[\d\w]+|[\d]+)/) ' \
@@ -51,7 +51,7 @@ parse.h: $(KERNEL_DIR)/include/linux/input.h
-e 'if (m/^\#define\s+(BTN_[^\s]+)\s+(0x[\d\w]+|[\d]+)/) ' \
-e '{ printf "\t{\"%s\", %s},\n",$$1,$$2; }' \
>> parse.h
- @echo -en "\t{ NULL, 0}\n};\n" >>parse.h
+ @printf "\t{ NULL, 0}\n};\n" >>parse.h
keytables:
-mkdir -p keycodes