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(a)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
Show replies by date