From 84027120ee4e4a5dad1dc88509902152c688842e Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 29 Sep 2008 05:48:26 +0000 Subject: 2-apps: fix generation of parse.h From: Andreas Oberritter 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 --- v4l2-apps/util/Makefile | 6 +++--- 1 file 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 -- cgit v1.2.3