>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

>> Unfortunately, I know nothing about awk. Any taker?

Angus> Me neither, but how about
[...]

I knew you could not resist, Angus... It did not work, but a variation
on that did work. I'll send a complete patch once I am satisfied that
it works, but here is the Makefile patch snippet.

JMarc

Index: po/Makefile.in.in
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/po/Makefile.in.in,v
retrieving revision 1.28.2.2
diff -u -p -r1.28.2.2 Makefile.in.in
--- po/Makefile.in.in	27 May 2003 12:45:51 -0000	1.28.2.2
+++ po/Makefile.in.in	14 Nov 2003 13:41:07 -0000
@@ -218,13 +218,18 @@ $(srcdir)/xforms_l10n.pot: $(top_srcdir)
 		     print "\"Content-Type: text/plain; charset=ISO-8859-1\\n\""; \
 		     print "\"Content-Transfer-Encoding: 8bit\\n\""; \
 		     print "\n"; \
+	             skip=0; \
 	     } \
+	     /style: 15/ { \
+		     skip=1; \
+             } \
 	     /label: / { \
-		     if (NF > 1) { \
+		     if (NF > 1 && skip == 0) { \
 			     line=$$0;\
 			     sub(/label: /,"",line);\
 			     printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", FILENAME, FNR, line);\
 		     }\
+		     skip=0; \
 	     }' \
 	`find $(top_srcdir)/src/frontends/xforms/forms -name \*.fd` > $@
 

Reply via email to