Browse Source

Merge branch 'org' into 'master'

Preprocess Emacs Org mode files before comparison



See merge request !2
master
Matthieu Moy 10 years ago
parent
commit
209e9b1da5
  1. 16
      git-latexdiff

16
git-latexdiff

@ -431,6 +431,13 @@ check_knitr () {
main="${main%\.*}.tex"
}
check_org () {
if test -z "$prepare_cmd"; then
prepare_cmd="emacs --batch --eval \"(load \\\"~/.emacs\\\")\" \"$main\" -f org-latex-export-to-latex --kill"
fi
main="${main%\.*}.tex"
}
log_cmd () {
log=$1
shift
@ -459,17 +466,18 @@ if test -z "$main" ; then
fi
fi
if test ! -r "$main" ; then
die "Cannot read $main."
fi
ext=${main##*\.}
case "$ext" in
Rnw) check_knitr ;;
Rtex) check_knitr ;;
org) check_org ;;
*) ;;
esac
if test ! -r "$main" ; then
die "Cannot read $main."
fi
verbose "Creating temporary directories"
git_prefix=$(git rev-parse --show-prefix)

Loading…
Cancel
Save