Google
  Web www.spinics.net

[PATCH] v4l2-apps: fix generation of parse.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hello Mauro,

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.

Regards,
Andreas
diff -r 8e6cda021e0e v4l2-apps/util/Makefile
--- a/v4l2-apps/util/Makefile	Fri Sep 26 11:29:03 2008 +0200
+++ b/v4l2-apps/util/Makefile	Mon Sep 29 04:47:24 2008 +0200
@@ -42,8 +42,8 @@
 
 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 @@
 	-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
_______________________________________________
v4l-dvb-maintainer mailing list
v4l-dvb-maintainer@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/v4l-dvb-maintainer

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [Linux USB]

-->
Add to Google Powered by Linux

Google PageRank Checking tool