texlive[41316] Master/texmf-dist/scripts/xindy/xindy.pl: Use

commits+kakuto at tug.org commits+kakuto at tug.org
Wed Jun 8 02:49:14 CEST 2016


Revision: 41316
          http://tug.org/svn/texlive?view=revision&revision=41316
Author:   kakuto
Date:     2016-06-08 02:49:14 +0200 (Wed, 08 Jun 2016)
Log Message:
-----------
Use kpsewhich to search for modules in xindy.pl

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/xindy/xindy.pl

Modified: trunk/Master/texmf-dist/scripts/xindy/xindy.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/xindy/xindy.pl	2016-06-08 00:40:41 UTC (rev 41315)
+++ trunk/Master/texmf-dist/scripts/xindy/xindy.pl	2016-06-08 00:49:14 UTC (rev 41316)
@@ -803,7 +803,13 @@
 	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);
     }



More information about the tex-live-commits mailing list