summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy/xindy-src/user-commands/xindy.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-10 22:16:04 +0000
committerKarl Berry <karl@freefriends.org>2021-07-10 22:16:04 +0000
commit055df0f085cf0279e7c9c933c7c7a0492b06658d (patch)
treef6df68c58ffa6cc737470876489e48668f377d8f /Build/source/utils/xindy/xindy-src/user-commands/xindy.in
parent9afdae1a5c6bc22ba773b7a1c7b9ae85f8912409 (diff)
better xindy version output
git-svn-id: svn://tug.org/texlive/trunk@59893 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/xindy/xindy-src/user-commands/xindy.in')
-rw-r--r--Build/source/utils/xindy/xindy-src/user-commands/xindy.in31
1 files changed, 24 insertions, 7 deletions
diff --git a/Build/source/utils/xindy/xindy-src/user-commands/xindy.in b/Build/source/utils/xindy/xindy-src/user-commands/xindy.in
index 9e75b8eed5c..5a18fd129c7 100644
--- a/Build/source/utils/xindy/xindy-src/user-commands/xindy.in
+++ b/Build/source/utils/xindy/xindy-src/user-commands/xindy.in
@@ -319,7 +319,7 @@ Joachim Schrod
=head1 LEGALESE
-Copyright (c) 2004-2014 by Joachim Schrod.
+Copyright (c) 2004-2021 by Joachim Schrod.
B<xindy> is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -340,7 +340,14 @@ GNU General Public License for more details.
use strict;
use English qw(-no_match_vars);
-our $VERSION = sprintf "%d.%02d", q$Revision: 1.18 $ =~ /: (\d+)\.(\d+)/ ;
+our $is_TL = ( '@is_TL@' eq 'yes' );
+
+our $VERSION = sprintf "%d.%02d", q$xRevision: 1.18 $ =~ /: (\d+)\.(\d+)/ ;
+if ($is_TL) {
+ # Until xindy is actively maintained upstream, let's make
+ # changes in TL be reflected in different version numbers.
+ $VERSION .= sprintf ".TL%d", q$Revision$ =~ /: (\d+)/ ; # TL rev
+}
# Used modules.
@@ -353,10 +360,17 @@ use File::Temp qw(tempfile tmpnam);
use Getopt::Long qw(:config bundling);
use POSIX qw(uname);
+# Forward declarations for prototypes.
+
+sub call_xindy ($$);
+sub create_raw_index ();
+sub filter_index ($$);
+sub handle_signals ();
+sub parse_options ();
+sub xindy_expression ();
# Determine environment. Where is our library directory, and our modules?
-our $is_TL = ( '@is_TL@' eq 'yes' );
our $is_w32 = ( $OSNAME =~ /^MSWin/i ) ;
our $path_sep = ( $is_w32 ? ';' : ':' ) ;
our $is_windows = ( $is_w32 || $OSNAME eq 'cygwin' ) ;
@@ -501,10 +515,6 @@ our ($quiet, $verbose, %debug,
$input_markup = 'latex';
$mem_file = "$lib_dir/xindy.mem";
-my @orig_argv = @ARGV;
-parse_options();
-
-
# Support universal binary on Mac OS X.
if ( $OSNAME eq 'darwin' && ! -e $mem_file ) {
@@ -519,6 +529,11 @@ if ( $OSNAME eq 'darwin' && ! -e $mem_file ) {
$mem_file = "$lib_dir/xindy-i386.mem";
}
}
+
+my @orig_argv = @ARGV;
+parse_options();
+
+# might get overridden
die "$cmd: Cannot locate $mem_file" unless -e $mem_file;
@@ -928,6 +943,8 @@ sub quotify ( $ ) {
#======================================================================
+# (modified several times for TeX Live; see
+# Build/source/utils/xindy/ChangeLog)
#
# $Log: xindy.pl,v $
# Revision 1.18 2011/01/18 22:18:29 jschrod