diff options
author | Vladimir Volovich <vvv@vsu.ru> | 2008-03-27 02:34:05 +0000 |
---|---|---|
committer | Vladimir Volovich <vvv@vsu.ru> | 2008-03-27 02:34:05 +0000 |
commit | a8a325ab089f5786566994def992540cee68b6ee (patch) | |
tree | 84b04afec3c0f3a010ed38ad6e88d7e58f2b91a6 /Build | |
parent | a409d1d78b8926159ffe956f749c25aef1ac7f51 (diff) |
show an error message if an old calling convention is detected,
i.e. if there are command-line 2 arguments and the 1st one is a *.xdy file.
in this case older version of xindy script was calling xindy.v2,
which has been deprecated and not installed anymore.
therefore, we cannot call xindy.v2, but should show an error message,
otherwise this may confuse users who were relying on this behavior of
silent call to xindy.v2 from xindy
git-svn-id: svn://tug.org/texlive/trunk@7176 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/utils/xindy/user-commands/xindy.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Build/source/utils/xindy/user-commands/xindy.in b/Build/source/utils/xindy/user-commands/xindy.in index db629369457..b180e66a743 100644 --- a/Build/source/utils/xindy/user-commands/xindy.in +++ b/Build/source/utils/xindy/user-commands/xindy.in @@ -378,6 +378,18 @@ $mem_file = "$lib_dir/xindy.mem"; parse_options(); +if ( @ARGV == 2 && $ARGV[0] =~ /\.xdy$/ ) { + print STDERR <<EOF; +$cmd: deprecated calling convention detected. +Please change your command to + +$cmd -I xindy -M $ARGV[0] $ARGV[1] + +Run "$cmd --help" for full list of options, or read the documentation. +EOF + exit 1; +} + # This script creates temporary files. Whenever a file is created, its # name is added to @temp_files. In an END handler, the temporary files |