[Scummvm-cvs-logs] CVS: docs/docbook faq_make_inc.pl,NONE,1.1 Makefile,1.7,1.8

Max Horn fingolfin at users.sourceforge.net
Sat Nov 26 11:18:01 CET 2005


Update of /cvsroot/scummvm/docs/docbook
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6542

Modified Files:
	Makefile 
Added Files:
	faq_make_inc.pl 
Log Message:
Added build rule for faq.inc

--- NEW FILE: faq_make_inc.pl ---
#!/usr/bin/perl -w
use strict;

while (<>) {
  last if (/<div class="qandaset">/);
}

print '<div class="qandaset">'."\n";
while (<>) {
  last if (/<\/body>/);
  print $_;
}


Index: Makefile
===================================================================
RCS file: /cvsroot/scummvm/docs/docbook/Makefile,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Makefile	22 Dec 2004 18:11:31 -0000	1.7
+++ Makefile	26 Nov 2005 19:17:45 -0000	1.8
@@ -69,6 +69,17 @@
 	tidy -qm $@ || true
 
 
+
+# Special rule for faq.inc:
+# Remove everything before <div class="qandaset">
+# and at the end of the file remove
+#   </body>
+#   </html>
+faq.inc: faq.html
+	./faq_make_inc.pl < $< > $@
+
+
+
 #
 # This second set of rules uses docbook-xsl and xsltproc (from libxslt)
 # as well as fop to create HTML, XHTML and PDF output.





More information about the Scummvm-git-logs mailing list