OSDN Git Service

[media] DocBook: Remove comments before parsing enum values
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 7 Jun 2015 19:17:56 +0000 (16:17 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 9 Jun 2015 20:47:36 +0000 (17:47 -0300)
The comments may affect enum value parsing. Use cpp to remove
them.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Documentation/DocBook/media/Makefile

index 2261529..e7d44a0 100644 (file)
@@ -87,7 +87,7 @@ ENUMS = \
                $(srctree)/include/uapi/linux/v4l2-subdev.h)
 
 ENUM_DEFS = \
-       $(shell perl -e 'while (<>) { if ($$enum) {print "$$1\n" if (/\s*([A-Z]\S+)\b/); } $$enum = 0 if ($enum && /^\}/); $$enum = 1 if(/^\s*enum\s/); }' \
+       $(shell perl -e 'open IN,"cat @ARGV| cpp -fpreprocessed |"; while (<IN>) { if ($$enum) {print "$$1\n" if (/\s*([A-Z]\S+)\b/); } $$enum = 0 if ($$enum && /^\}/); $$enum = 1 if(/^\s*enum\s/); }; close IN;' \
                $(srctree)/include/uapi/linux/dvb/audio.h \
                $(srctree)/include/uapi/linux/dvb/ca.h \
                $(srctree)/include/uapi/linux/dvb/dmx.h \