diff options
author | Vladimir Volovich <vvv@vsu.ru> | 2008-03-25 23:05:32 +0000 |
---|---|---|
committer | Vladimir Volovich <vvv@vsu.ru> | 2008-03-25 23:05:32 +0000 |
commit | 27abb3313851b0227429bbb853bc620f7dd3f7b1 (patch) | |
tree | 3d14ac75c3de5627ec1e4ee74852e4cea0bb278f /Build/source/utils/xindy/make-rules/alphabets/make-rules.pl | |
parent | f35167421fd846c51e3bc2daed714bf692532996 (diff) |
simplified the way make-rules.pl finds out where to search for test.xdy
(do not require 3rd @ARGV parameter, but look in @INC, as we pass the $srcdir there)
git-svn-id: svn://tug.org/texlive/trunk@7157 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/xindy/make-rules/alphabets/make-rules.pl')
-rwxr-xr-x | Build/source/utils/xindy/make-rules/alphabets/make-rules.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/utils/xindy/make-rules/alphabets/make-rules.pl b/Build/source/utils/xindy/make-rules/alphabets/make-rules.pl index ad3d7cf702b..6f8347c9ef4 100755 --- a/Build/source/utils/xindy/make-rules/alphabets/make-rules.pl +++ b/Build/source/utils/xindy/make-rules/alphabets/make-rules.pl @@ -23,8 +23,8 @@ print TESTXDY " :rule-set (\"".$prefix."resolve-case\" \"".$prefix."ignore print TESTXDY "(use-rule-set :run 3\n"; print TESTXDY " :rule-set (\"".$prefix."resolve-special\"))\n"; close TESTXDY; -my $srcdir = "."; $srcdir = $ARGV[1] if defined $ARGV[1]; -system("cat $srcdir/test.xdy >> $ARGV[0]-test.xdy"); +$fn = "test.xdy"; $fn = "$INC[0]/$fn" if ! -f $fn && -f "$INC[0]/$fn"; die "$fn: $!" if ! -f $fn; +system("cat $fn >> $ARGV[0]-test.xdy"); $begin = 128; # $begin = 97 if ($script eq "cyrillic"); |