summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/xindy/texindy.pl
diff options
context:
space:
mode:
authorVladimir Volovich <vvv@vsu.ru>2009-09-05 12:37:28 +0000
committerVladimir Volovich <vvv@vsu.ru>2009-09-05 12:37:28 +0000
commit80071d5e4dddda14b0a3228d9b39f4315737945f (patch)
tree2e63b24e12e2892086c5b3ed086816ba6ff38a90 /Master/texmf/scripts/xindy/texindy.pl
parent4f1163fd4ae2a1e1aff6a02bbc3940832fb3889d (diff)
adapt xindy front-end scripts to TL2009 on woe32:
SELFAUTOLOC was set in TL2008 by the wrapper commands (xindy.bat and texindy.bat) but SELFAUTOLOC is no longer set in TL2009 by the new wrapper commands (xindy.exe and texindy.exe), and instead there's a TL_ROOT env. var. This appears to work when TL is being run from a letter-mapped "drive" but doesn't work when run directly from a network share w/o a letter mapping. git-svn-id: svn://tug.org/texlive/trunk@15129 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/xindy/texindy.pl')
-rwxr-xr-xMaster/texmf/scripts/xindy/texindy.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf/scripts/xindy/texindy.pl b/Master/texmf/scripts/xindy/texindy.pl
index 64dfbd71d46..72e86e7939c 100755
--- a/Master/texmf/scripts/xindy/texindy.pl
+++ b/Master/texmf/scripts/xindy/texindy.pl
@@ -367,6 +367,9 @@ if ( -f "$cmd_dir/xindy" && -x _ ) {
$xindy = "$cmd_dir/xindy";
} elsif ( -f "$cmd_dir/xindy.pl" && -x _ ) {
$xindy = "$cmd_dir/xindy.pl";
+} elsif ( exists $ENV{"TL_ROOT"} && -f "$ENV{TL_ROOT}\\bin\\win32\\xindy.exe") {
+ $xindy = "$ENV{TL_ROOT}\\bin\\win32\\xindy.exe";
+ $cmd_dir = "$ENV{TL_ROOT}\\bin\\win32";
} elsif ( -f "$ENV{SELFAUTOLOC}/xindy.bat" ) { # woe32
$xindy = "$ENV{SELFAUTOLOC}/xindy.bat";
$cmd_dir = $ENV{"SELFAUTOLOC"};
@@ -394,9 +397,9 @@ push (@opt, map { ('-M', $_) } ($ENV{TEXINDY_AUTO_MODULE} || 'texindy',
@modules));
push (@opt, '-I', $input_markup);
-print "Calling xindy as: $cmd_dir/xindy @opt @ARGV\n" if (grep /^script$/, @debug);
+print "Calling xindy as: $xindy @opt @ARGV\n" if (grep /^script$/, @debug);
-if ($xindy =~ m,\.bat$,) {
+if ($xindy =~ m,\.(bat|exe)$,) {
system($xindy, @opt, @ARGV);
exit $? if $? != -1;
} else {