From f52f3e5baa220b2b35914a14d8adc30f2f3ec124 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Mon, 21 Jul 2014 16:37:57 +0200 Subject: [PATCH] Fix quoting after the previous patch --- git-latexdiff | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/git-latexdiff b/git-latexdiff index 83d1676..41fbeb6 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -459,16 +459,16 @@ fi # Shortcut to include bbl if test "$bbl" = 1; then - bblexpand=("--expand-bbl "$mainbase".bbl") + bblexpand=("--expand-bbl" "$mainbase.bbl") else - bblexpand=("") + bblexpand=() fi # Create flattened documents and keep for debugging if test "$flatten" = 1; then if [ "$bbl" = 1 ]; then - if [ ! -f "old/"$maindir$mainbase".bbl" ]; then - verbose "Attempting to regenerate missing old/"$maindir$mainbase".bbl" + if [ ! -f "old/$maindir$mainbase.bbl" ]; then + verbose "Attempting to regenerate missing old/$maindir$mainbase.bbl" ( cd old/"$maindir" log_cmd pdflatex0.log pdflatex $latexopt "$mainbase" || compile_error=1 @@ -478,8 +478,8 @@ if test "$flatten" = 1; then die "Failed to regenerate .bbl for old version" fi fi - if [ ! -f "new/"$maindir$mainbase".bbl" ]; then - verbose "Attempting to regenerate missing new/"$maindir$mainbase".bbl" + if [ ! -f "new/$maindir$mainbase.bbl" ]; then + verbose "Attempting to regenerate missing new/$maindir$mainbase.bbl" ( cd new/"$maindir" log_cmd pdflatex0.log pdflatex $latexopt "$mainbase" || compile_error=1 @@ -493,12 +493,12 @@ if test "$flatten" = 1; then verbose "Running latexpand" ( cd old/"$maindir" && - latexpand "$mainbase".tex "${latexpand[@]}" $bblexpand + latexpand "$mainbase".tex "${latexpand[@]}" "${bblexpand[@]}" ) > old-"$mainbase"-fl.tex \ || die "latexpand failed for old version" ( cd new/"$maindir" && - latexpand "$mainbase".tex "${latexpand[@]}" $bblexpand + latexpand "$mainbase".tex "${latexpand[@]}" "${bblexpand[@]}" ) > new-"$mainbase"-fl.tex \ || die "latexpand failed for new version" verbose_done