Read Me
mdiff - Multiple document type diff.
mdiff can compare various documents type:
- standard text
- file info
- latex files
- config files
- source code of different languages
Introduction
============
Application has several modules which can compare different types of documents.
Each module compare specific type od file with specific options.
Module TextDiff:
Compare text files, it is possible ignore case, whitespace, blank lines,
or lines matching given regular expression. Provide basic command line
output formats like normal, context and uniffied. Advanced output format
are differ and html page. For more information view help:
$ mdiff text -h
Module FileinfoDiff:
Compare informations about files like name, type, access rights, UID, GID,
owner, group, size, and times. Output format is differ. For more information
view help:
$ mdiff fileinfo -h
Module LatexDiff:
Extract pure text from LaTeX source files and compare them.
It is possible use options from text - ignore case, whitespace, blank lines,
or lines matching given regular expression. Provide basic command line
output formats like normal, context and unified. Advanced output format
are differ and html page. For more information view help:
$ mdiff latex -h
Modile ConfigDiff:
Compare two UNIX-like configuration files. Lines order is ignored.
Duplicate lines are removed. Is possible ignore comments, whitespace
or lines matching regular expression. Output format is differ.
For more information view help:
$ mdiff config -h
Module SemanticDiff:
Compare source code of programming languages. Actually are supported C/C++, Java and Python.
Provide advanced options like ignore names of identifiers, ignore numbers or strings literals,
ignore operators, comments or keywords. Output is line oriented, supported are normal, context
and unified output format. For more information view help:
$ mdiff src -h
Installation
==========
In mediadiff directory with root permissions:
$ python ./setup.py install
How to Use
==========
$ mdiff [-h] {text,fileinfo,latex,config,src} ...
Requirements
============
python 3.2
ply library (Python lex yacc)
Examples
========
Compare two text files:
$ ./mdiff text ../data/original.txt ../data/new.txt
Comparation with ignore blank lines in context format:
$ ./mdiff text -B -c ../data/original.txt ../data/new.txt
Compare source codes:
$ ./mdiff src ../data/a.c ../data/b.c
Comparation with ignore options:
$ ./mdiff src --ignore-identifiers --ignore-comments ../data/a.c ../data/b.c