Skip to content

Instantly share code, notes, and snippets.

@mischnic
Created September 12, 2017 11:12
Show Gist options
  • Save mischnic/f8b0433934e046c4e6d0202d99276b82 to your computer and use it in GitHub Desktop.
Save mischnic/f8b0433934e046c4e6d0202d99276b82 to your computer and use it in GitHub Desktop.
TeXcount 3.0.1 auxdir patch
diff --git a/texcount.pl b/texcount.pl
index d711133..e70f5de 100755
--- a/texcount.pl
+++ b/texcount.pl
@@ -1248,7 +1248,7 @@ sub include_file {
my $filepath;
if ($type eq '<bbl>' && defined $auxdir) {
$auxdir=~s/([\\\/])*$/\//;
- if (defined $globalworkdir) {@paths=[$auxdir];}
+ if (defined $globalworkdir) {@paths=$auxdir;}
elsif ($auxdir=~/^(\w:)?[\\\/]/) {@paths=[$auxdir];}
else {@paths=[$workdir.$auxdir]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment