diff options
Diffstat (limited to 'Build/source/texk/makeindexk')
-rw-r--r-- | Build/source/texk/makeindexk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/makeindexk/Makefile.am | 2 | ||||
-rw-r--r-- | Build/source/texk/makeindexk/Makefile.in | 2 | ||||
-rw-r--r-- | Build/source/texk/makeindexk/mkind.c | 9 | ||||
-rwxr-xr-x | Build/source/texk/makeindexk/tests/nested-range-test.pl | 4 |
5 files changed, 13 insertions, 9 deletions
diff --git a/Build/source/texk/makeindexk/ChangeLog b/Build/source/texk/makeindexk/ChangeLog index 00d9a3864ad..bf7c2c6a1c9 100644 --- a/Build/source/texk/makeindexk/ChangeLog +++ b/Build/source/texk/makeindexk/ChangeLog @@ -1,3 +1,8 @@ +2011-09-30 Peter Breitenlohner <peb@mppmu.mpg.de> + + * mkind.c (main): The argument of kpse_set_program_name() must + be the unmodified argv[0], not basename(argv[0]) or some such. + 2011-09-25 Akira Kakuto <kakuto@fuk.kindai.ac.jp> * genind.c: write a binary string by octal numbers to avoid an diff --git a/Build/source/texk/makeindexk/Makefile.am b/Build/source/texk/makeindexk/Makefile.am index 9c8082ce003..04767149ab0 100644 --- a/Build/source/texk/makeindexk/Makefile.am +++ b/Build/source/texk/makeindexk/Makefile.am @@ -46,5 +46,5 @@ EXTRA_DIST += $(TESTS) ## tests/nested-range-test.pl EXTRA_DIST += tests/nested-range.tex tests/nested-range.idx \ tests/nested-range-bb.tex tests/nested-range-bb.idx -DISTCLEANFILES = +DISTCLEANFILES = nested-range.ilg nested-range.ind diff --git a/Build/source/texk/makeindexk/Makefile.in b/Build/source/texk/makeindexk/Makefile.in index b993fc40e92..253db5c7239 100644 --- a/Build/source/texk/makeindexk/Makefile.in +++ b/Build/source/texk/makeindexk/Makefile.in @@ -278,7 +278,7 @@ EXTRA_DIST = CONTRIB NOTES $(TESTS) tests/nested-range.tex \ tests/nested-range.idx tests/nested-range-bb.tex \ tests/nested-range-bb.idx TESTS = tests/nested-range-test.pl -DISTCLEANFILES = +DISTCLEANFILES = nested-range.ilg nested-range.ind all: c-auto.h $(MAKE) $(AM_MAKEFLAGS) all-am diff --git a/Build/source/texk/makeindexk/mkind.c b/Build/source/texk/makeindexk/mkind.c index a295024dcdf..2373671eff3 100644 --- a/Build/source/texk/makeindexk/mkind.c +++ b/Build/source/texk/makeindexk/mkind.c @@ -105,6 +105,10 @@ main(int argc, char *argv[]) int ilg_given = FALSE; int log_given = FALSE; +#if USE_KPATHSEA + kpse_set_program_name (*argv, NULL); +#endif + /* determine program name */ pgm_fn = strrchr(*argv, DIR_DELIM); #ifdef ALT_DIR_DELIM @@ -120,11 +124,6 @@ main(int argc, char *argv[]) else pgm_fn++; -#if USE_KPATHSEA - kpse_set_program_name (pgm_fn, NULL); /* use the same name as the intro message */ -#endif - - /* process command line options */ while (--argc > 0) { if (**++argv == SW_PREFIX) { diff --git a/Build/source/texk/makeindexk/tests/nested-range-test.pl b/Build/source/texk/makeindexk/tests/nested-range-test.pl index 04d17d29d2c..441328257d6 100755 --- a/Build/source/texk/makeindexk/tests/nested-range-test.pl +++ b/Build/source/texk/makeindexk/tests/nested-range-test.pl @@ -11,7 +11,7 @@ require "$srcdir/../tests/common-test.pl"; exit (&main ()); sub main { - my $ret = &test_run ("makeindex", "$srcdir/tests/nested-range.idx", + my $ret = &test_run ("./makeindex", "$srcdir/tests/nested-range.idx", "-o", "nested-range.ind", "-t", "nested-range.ilg"); @@ -21,7 +21,7 @@ sub main { $IND = "nested-range.ind"; open (IND) || die "open($IND) failed: $!"; while (<IND>) { - $bad = 77 if /\\\(/; + $bad = 1 if /\\\(/; } close (IND) || die "close($IND) failed: $!"; |