release-notes/xmlbeats wikixml2fdpxml,1.3,1.4

Karsten Wade (kwade) fedora-docs-commits at redhat.com
Tue Feb 28 23:33:56 UTC 2006


Author: kwade

Update of /cvs/docs/release-notes/xmlbeats
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8888

Modified Files:
	wikixml2fdpxml 
Log Message:
Now with DOCTYPE cleansing powers.


Index: wikixml2fdpxml
===================================================================
RCS file: /cvs/docs/release-notes/xmlbeats/wikixml2fdpxml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- wikixml2fdpxml	28 Feb 2006 17:29:24 -0000	1.3
+++ wikixml2fdpxml	28 Feb 2006 23:33:49 -0000	1.4
@@ -7,11 +7,25 @@
 # kwade at redhat.com
 
 # Manually rename some files to include their wiki namespace
+echo "Renaming Wiki files."
 mv Beats/PPC.xml Beats/ArchSpecificPPC.xml
 mv Beats/x86_64.xml Beats/ArchSpecificx86_64.xml
 mv Beats/x86.xml Beats/ArchSpecificx86.xml
 mv Beats/GCC.xml Beats/DevelToolsGCC.xml
 mv Beats/SELinux.xml Beats/SecuritySELinux.xml
+echo "Finished renaming files."
+
+# Fix the DocType header from bad Wiki output
+ls Beats/ > xmlfiles
+for i in `cat xmlfiles`;
+do
+  sed s'/DocBook V4\.4/DocBook XML V4\.4/g' Beats/$i > tmpfile;
+  mv tmpfile Beats/$i;
+  echo "DOCTYPE header fixed for" $i
+done
+rm xmlfiles
+echo "Done"
+
 
 # Add the base language extension to the files
 #ls Beats/ > xmlfiles




More information about the Fedora-docs-commits mailing list