Setting up extdiff

Peter West April 24, 2015

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.

 

3 answers

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2015

Ah, ok, so question and answer. Thanks for sharing!

0 votes
Peter West April 27, 2015

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.

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2015

Cool, but what's your question?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events