From 7d99fb6935029b8ae449c64c52e1e6c71192136f Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sun, 7 Apr 2013 16:37:14 +0200 Subject: [PATCH] --output now implies --cleanup all It doesn't really make sense to try to keep the PDF file in the temporary directory since it has already been moved to the location specified by --output. Without this change, the temporary directory is kept, but is empty at the end of execution. --- git-latexdiff | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-latexdiff b/git-latexdiff index 204cd55..434ca4e 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -72,8 +72,8 @@ Options: --latexmk use latexmk -o , --output - copy resulting PDF into - (usually ending with .pdf) + copy resulting PDF into (usually ending with .pdf) + Implies "--cleanup all" --tmpprefix where temporary directory will be created (default: /tmp) --verbose, -v give more verbose output --prepare run before latexdiff (e.g. run make to generate @@ -164,6 +164,7 @@ while test $# -ne 0; do "-o"|"--output") test $# -gt 1 && shift || die "missing argument for $1" output=$1 + cleanup=all ;; "-b"|"--bibtex") bibtex=1