From 26d19b41e9a38b31f373e5ca5b86cc1cece07dcc Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 8 Jun 2016 00:40:41 +0000 Subject: xindy/xindy-src/user-commands/xindy.in: Use kpsewhich to search for modules git-svn-id: svn://tug.org/texlive/trunk@41315 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/xindy/ChangeLog | 6 ++++++ Build/source/utils/xindy/xindy-src/user-commands/xindy.in | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Build/source/utils/xindy/ChangeLog b/Build/source/utils/xindy/ChangeLog index cf28aa00f0a..f08f702a789 100644 --- a/Build/source/utils/xindy/ChangeLog +++ b/Build/source/utils/xindy/ChangeLog @@ -1,3 +1,9 @@ +2016-06-08 Akira Kakuto + + * xindy-src/user-commands/xindy.in: Use kpsewhich to search for modules. + Performance is lost. However user modules specified by the -M option + can be under /xindy/modules/. + 2016-02-22 Akira Kakuto * Makefile.am, configure.ac: New convention. diff --git a/Build/source/utils/xindy/xindy-src/user-commands/xindy.in b/Build/source/utils/xindy/xindy-src/user-commands/xindy.in index e6ae9198e7a..6e1bdbb9f83 100644 --- a/Build/source/utils/xindy/xindy-src/user-commands/xindy.in +++ b/Build/source/utils/xindy/xindy-src/user-commands/xindy.in @@ -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); } -- cgit v1.2.3