release-notes/xmlbeats wikixml2fdpxml,NONE,1.1

Karsten Wade (kwade) fedora-docs-commits at redhat.com
Mon Jan 30 00:29:13 UTC 2006


Author: kwade

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

Added Files:
	wikixml2fdpxml 
Log Message:
This script does some of what is needed, but not all, it needs a language such as perl or python to do some kung-fu.  It is also not a modular script or otherwise well written, it's just a hack to get started.


--- NEW FILE wikixml2fdpxml ---
#!/bin/bash
#
# This file can be completely replaced with a better tool written in 
# $LANGUAGE of someone's choice
#
# Original shell script - 29-Jan-2005
# kwade at redhat.com

# Manually rename some files to include their wiki namespace
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

# Add the base language extension to the files
ls Beats/ > xmlfiles
for i in `cat xmlfiles`;
  do
  echo $i | sed 's/.xml/-en.xml/g' > newfilename;
  mv Beats/$i Beats/`cat newfilename`;
done
rm xmlfiles newfilename
echo "done"

# Right here is where we want to call perl-fu or python-fu
# to follow this pseudo-code
# 
# for each(<section>); 
#  do
#    get(contents of <title></title>) == $title;
#    replace(" " with "-") == $idattrib;
#    insert($idattrib) -> <section id="$idattrib">;
#  done





More information about the Fedora-docs-commits mailing list