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 , ,
, and 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