Saturday, 8 February 2014

Version control of OpenOffice/LibreOffice documents using git and Python

All my collegues in R&D department love Latex! Unfortunately it's not the same for commercial office people.

This is the reason why we write our manuals and documentations with LibreOffice. After the pain of a big revision on one of our manuals I've decided to introduce a version control also for the documentation as well.

Thus I wrote down a python script that generate automatically a Git-Friendly version of the ODT files.

Here's the link to the GitHub project and to a test project

If you launch the script with th -h option you will find how to use it: -h
usage: [-h] [-v] [-c | -e] Directory ODT_File
Extract/Create an odt file in/from a directory.
positional arguments:
  Directory       target/destination directory
  ODT_File        target/destination odt file
optional arguments:
  -h, --help      show this help message and exit
  -v, --verbose   increase output verbosity
  -c, --compress  compress into an .odt file
  -e, --extract   extract odt file into a directory (default)

No comments :

Post a Comment