diff options
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/glossaries/makeglossaries | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/glossaries/makeglossaries b/Master/texmf-dist/scripts/glossaries/makeglossaries index 6807b69bae3..3b9f1cb6b48 100755 --- a/Master/texmf-dist/scripts/glossaries/makeglossaries +++ b/Master/texmf-dist/scripts/glossaries/makeglossaries @@ -2,7 +2,7 @@ # File : makeglossaries # Author : Nicola Talbot -# Version : 1.3 (2008/03/08) +# Version : 1.4 (2008/05/10) # Description: simple Perl script that calls makeindex. # Intended for use with "glossaries.sty" (saves having to remember # all the various switches) @@ -28,6 +28,8 @@ # Also makeglossaries and makeglossaries. # # History: +# v1.4 (2008-05-10) : +# * added support for filenames with spaces. # v1.3 (2008-03-08) : # * changed first line from /usr/bin/perl -w to /usr/bin/env perl # (Thanks to Karl Berry for suggesting this.) @@ -108,6 +110,9 @@ if (open AUXFILE, "$name.aux") if (m/\\\@istfilename\s*{([^}]*)}/) { $istfile = $1; + + # check if double quotes were added to \jobname + $istfile=~s/^"(.*)"\.ist$/$1.ist/; } } @@ -248,7 +253,7 @@ sub makeindex{ my($name,$cmdstr,$buffer,$n,$i,$j); my(@stuff,@item); - $cmdstr = "$rest -s $ist -t $trans -o $out $in"; + $cmdstr = "$rest -s \"$ist\" -t \"$trans\" -o \"$out\" \"$in\""; unless ($quiet) { |