I have written an extdiff script to allow for diffing the text of documents like Microsoft Office XML and CDF files, and OpenOffice files. It takes its inspiration from the oodif-odt2txt combination, but uses Apache Tika for file type detection and conversion. I use kdiff3 for the actual diff GUI.
The main problem I ran into when setting it up was PATH-related. SourceTree sets up its own PATH, so you must specify the full path to your script, and if you are calling any ancillary scripts for within the main script their path will have to be specified. My script lives in ~/bin, and calls a number of other scripts in there, so I found that the easiest solution was to add
export PATH="$PATH:$(dirname $0)"
at the top of the main script.
Ah, ok, so question and answer. Thanks for sharing!
I was going to ask for help resolving the problem that turned out to be the PATH, so I've posted the answer for the next person who runs into trouble.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cool, but what's your question?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.