diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-06-08 00:49:14 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-06-08 00:49:14 +0000 |
commit | b54554d6834849b74d698bc2b7b16cd7fe55883f (patch) | |
tree | 83cdd5dbd7ee34102968220fab08e82cd9068c9c /Master | |
parent | 26d19b41e9a38b31f373e5ca5b86cc1cece07dcc (diff) |
Use kpsewhich to search for modules in xindy.pl
git-svn-id: svn://tug.org/texlive/trunk@41316 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf-dist/scripts/xindy/xindy.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/xindy/xindy.pl b/Master/texmf-dist/scripts/xindy/xindy.pl index c460c0beadf..7f7254aeadc 100755 --- a/Master/texmf-dist/scripts/xindy/xindy.pl +++ b/Master/texmf-dist/scripts/xindy/xindy.pl @@ -803,7 +803,13 @@ sub xindy_expression () { push (@temp_files, $style_file); $style_file=quotify($style_file); foreach my $module ( @modules ) { - print $sf "(require \"$module\")\n"; + my $fnmodule=`kpsewhich -progname=xindy -format=othertext $module`; + if ($fnmodule) { + chomp($fnmodule); + print $sf "(require \"$fnmodule\")\n"; + } else { + print $sf "(require \"$module\")\n"; + } } close ($sf); } |