mirror of
https://github.com/status-im/OpenXR-Docs.git
synced 2026-08-31 09:41:13 +00:00
1.2 KiB
1.2 KiB
HTML Diff Script
This is a first cut at a script to compare HTML specifications. Usage is simply:
htmldiff file1.html file2.html > diff.html
The script does not copy any CSS and images required by the input specs, so it's best to generate the output in the same directory as one of the inputs.
The scripts used require Python and Perl. Additionally, the python 'utidylib' module and the underlying libtidy C library are required, which may make it challenging to run the scripts on non-Linux platforms. It is not known if these requirements can easily be removed.
Usage Notes
- For Debian/Ubuntu distros, install the
python-utidylibpackage, which should also install thelibtidypackages. - The directory containing the
htmldiff.plPerl script needs to be in thePATH.
The scripts are taken from the code backing the
http://services.w3.org/htmldiff
website.
Files
htmldiffis the Python driver script.htmldiff.plis the Perl script which generates the diff after preprocessing of the input HTML byhtmldiff.htmldiff.origis the original Python script from the website as a CGI script. This script was modified to run at the command line and saved ashtmldiff.