Author: kwade
Update of /cvs/docs/release-notes/xmlbeats
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30934
Added Files:
steps-to-convert-v-1.txt
Log Message:
This was one of the procedures for converting the Wiki XML into DB XML, put here for
reference.
--- NEW FILE steps-to-convert-v-1.txt ---
1. Use xmlbeats to get the content local
2. Convert filenames that need it to match the WikiName
GCC.xml => DevelopmentToolsGCC.xml
...
3. Run xmlformat on all the Beats
cd release-notes/xmlbeats/Beats
for i in *.xml;
do
# Run xmlformat with the nifty config file
xmlformat -f /path/to/xmlformat-fdp.conf $i > tmpfile;
mv tmpfile $i; done
4. Remove the <?xml>, <DOCTYPE>, <article />, and <articleinfo />
contents from each file.
5. Run xmldiff to get a diff; do not use -p (default) as the colored
output is icky when piped to a file.
cd release-notes/xmlbeats/Beats
mkdir ../diffs
for i in *.xml;
do
# Get a mirror of the file name without extension
echo $i | sed 's/\.xml//' > tmpname;
# Format "oldfile newfile"
# oldfile == XML in CVS
# newfile == XML from Wiki
xmldiff -u ../../`cat tmpname`-en.xml $i > ../diffs/`cat tmpname`.diff;
done
Show replies by date