#44 Prepare xindy.pl for inclusion in miktex

v2.5
closed-fixed
None
5
2015-02-04
2014-02-04
U_Fischer
No

I want to try to persuade Christian Schenk to include xindy in miktex.

As a first step I wanted to assemble all the needed steps and locations for a successfull installation to minimize the work for Christian (and so maximize the probability that he includes xindy).

I used the xindy package from w32tex.org for the tests and it worked fine with one small problem:

One has to change line 379 of xindy.pl to reflect the different location of the bin folder in a miktex system:

$cmd_dir = "$cmd_dir/../../../../bin";

Imho the smoothest and easiest solution to this problem (unless you want to write code to detect miktex to insert the correct pathes ...) would be an environment variable that miktex could set locally. Here the diff between the original xindy.pl and my new version:

***************
*** 376,382 ****
      die "$cmd: Cannot locate xindy modules directory"  unless -d $modules_dir;

      if ( $is_w32 ) {
!   $cmd_dir = "$cmd_dir/../../../../bin";
      } else {
    die "$cmd: not a symlink as required for TeX Live"  unless -l $0;
    # Follow symlinks and determine $cmd_dir such that
--- 376,386 ----
      die "$cmd: Cannot locate xindy modules directory"  unless -d $modules_dir;

      if ( $is_w32 ) {
!      if ( $ENV{MIKTEX_XINDY_LIBDIR} ) {
!        $cmd_dir = $ENV{MIKTEX_XINDY_LIBDIR};
!      else  {
!           $cmd_dir = "$cmd_dir/../../../../bin";
!        }
      } else {
    die "$cmd: not a symlink as required for TeX Live"  unless -l $0;
    # Follow symlinks and determine $cmd_dir such that

Miktex could then create an exe for a batch file like this:

SETLOCAL
set MIKTEX_XINDY_LIBDIR=%~dp0
perl %~dp0\..\..\scripts\xindy\xindy.pl %1 %2 %3 %4 %5 %6 %7 %8 %9
ENDLOCAL

(the parameter handling should probably be improved, this is the short version for tests).

Could you please a such a change (or something else which would allow miktex to use the perl script without manual change)?

Ulrike Fischer

Discussion

  • Joachim Schrod

    Joachim Schrod - 2014-04-20

    MikTeX support, as proposed by Peter Breitenlohner, has been added to xindy 2.5 that was released today.

     
  • Joachim Schrod

    Joachim Schrod - 2014-04-20
    • status: open --> closed-fixed
    • assigned_to: Joachim Schrod
    • Group: v2.3 --> v2.5
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks