|
|
@ -13,8 +13,9 @@ |
|
|
# revisions of a LaTeX file. |
|
|
# revisions of a LaTeX file. |
|
|
# |
|
|
# |
|
|
# The script internally checks out the full tree for the specified |
|
|
# The script internally checks out the full tree for the specified |
|
|
# revisions, and calls latexdiff with the --flatten option, hence this |
|
|
|
|
|
# works if the document is split into multiple .tex files. |
|
|
|
|
|
|
|
|
# revisions, calls latexpand to flatten the document and then calls |
|
|
|
|
|
# latexdiff, hence this works if the document is split into multiple |
|
|
|
|
|
# .tex files. |
|
|
# |
|
|
# |
|
|
# Try "git latexdiff -h" for more information. |
|
|
# Try "git latexdiff -h" for more information. |
|
|
# |
|
|
# |
|
|
@ -457,17 +458,22 @@ if test "$flatten" = 1; then |
|
|
latexpand old/"$main" > old/"$mainbase"-fl.tex "${latexpand[@]}" $oldbbl |
|
|
latexpand old/"$main" > old/"$mainbase"-fl.tex "${latexpand[@]}" $oldbbl |
|
|
latexpand new/"$main" > new/"$mainbase"-fl.tex "${latexpand[@]}" $newbbl |
|
|
latexpand new/"$main" > new/"$mainbase"-fl.tex "${latexpand[@]}" $newbbl |
|
|
verbose_done |
|
|
verbose_done |
|
|
|
|
|
|
|
|
verbose "Running latexdiff ${latexdiffopt[@]} old/"$mainbase"-fl.tex new/"$mainbase"-fl.tex > ./diff.tex" |
|
|
verbose "Running latexdiff ${latexdiffopt[@]} old/"$mainbase"-fl.tex new/"$mainbase"-fl.tex > ./diff.tex" |
|
|
latexdiff "${latexdiffopt[@]}" old/"$mainbase"-fl.tex new/"$mainbase"-fl.tex > diff.tex || die "latexdiff failed" |
|
|
|
|
|
|
|
|
latexdiff "${latexdiffopt[@]}" old/"$mainbase"-fl.tex new/"$mainbase"-fl.tex > diff.tex \ |
|
|
|
|
|
|| die "latexdiff failed" |
|
|
verbose_done |
|
|
verbose_done |
|
|
|
|
|
|
|
|
verbose "mv ./diff.tex new/$mainbase-fl.tex" |
|
|
verbose "mv ./diff.tex new/$mainbase-fl.tex" |
|
|
mv -f new/"$mainbase"-fl.tex new/"$mainbase"-fl.tex.orig |
|
|
mv -f new/"$mainbase"-fl.tex new/"$mainbase"-fl.tex.orig |
|
|
mv -f diff.tex new/"$main" |
|
|
mv -f diff.tex new/"$main" |
|
|
verbose_done |
|
|
verbose_done |
|
|
else |
|
|
else |
|
|
verbose "Running latexdiff ${latexdiffopt[@]} old/$main new/$main > ./diff.tex" |
|
|
verbose "Running latexdiff ${latexdiffopt[@]} old/$main new/$main > ./diff.tex" |
|
|
latexdiff "${latexdiffopt[@]}" old/"$main" new/"$main" > diff.tex || die "latexdiff failed" |
|
|
|
|
|
|
|
|
latexdiff "${latexdiffopt[@]}" old/"$main" new/"$main" > diff.tex \ |
|
|
|
|
|
|| die "latexdiff failed" |
|
|
verbose_done |
|
|
verbose_done |
|
|
|
|
|
|
|
|
verbose "mv ./diff.tex new/$main" |
|
|
verbose "mv ./diff.tex new/$main" |
|
|
mv -f new/"$main" new/"$main.orig" |
|
|
mv -f new/"$main" new/"$main.orig" |
|
|
mv -f diff.tex new/"$main" |
|
|
mv -f diff.tex new/"$main" |
|
|
|