summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/glossaries
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-05-22 12:12:33 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-05-22 12:12:33 +0000
commitce57a552309046a4cc494db73b145392d23854d8 (patch)
tree31e74f95d0e1055a9be38ceeff043b0da92c6b55 /Master/texmf-dist/scripts/glossaries
parent5d73f3920ec5a45afe3f6a89f59cbf5ba5f90a8f (diff)
-mglossaries v1.13 (2008/05/18)
git-svn-id: svn://tug.org/texlive/trunk@8285 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/glossaries')
-rwxr-xr-xMaster/texmf-dist/scripts/glossaries/makeglossaries9
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)
{