summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/utils/xindy/doc/Makefile.am49
-rw-r--r--Build/source/utils/xindy/doc/next.gifbin172 -> 0 bytes
-rw-r--r--Build/source/utils/xindy/doc/prev.gifbin220 -> 0 bytes
-rw-r--r--Build/source/utils/xindy/doc/toc.gifbin145 -> 0 bytes
-rw-r--r--Build/source/utils/xindy/tex2xindy/Makefile.am11
-rw-r--r--Build/source/utils/xindy/user-commands/Makefile.am28
-rwxr-xr-xBuild/source/utils/xindy/user-commands/makeindex4228
-rw-r--r--Build/source/utils/xindy/user-commands/makeindex4.160
8 files changed, 347 insertions, 29 deletions
diff --git a/Build/source/utils/xindy/doc/Makefile.am b/Build/source/utils/xindy/doc/Makefile.am
index 5ce2177d487..5b9008d46d4 100644
--- a/Build/source/utils/xindy/doc/Makefile.am
+++ b/Build/source/utils/xindy/doc/Makefile.am
@@ -22,14 +22,7 @@
SUBDIRS = style-tutorial
FILES = \
- dataflow.gif \
- faq-1.html \
- faq-2.html \
- faq-3.html \
- faq-4.html \
- faq.html \
- index.gif \
- makeindex4.pdf \
+ manual.html \
manual-1.html \
manual-2.html \
manual-3.html \
@@ -37,23 +30,41 @@ FILES = \
manual-5.html \
manual-6.html \
manual-7.html \
- manual.html \
- mappings.gif \
- next.gif \
- prev.gif \
- README \
+ faq.html \
+ faq-1.html \
+ faq-2.html \
+ faq-3.html \
+ faq-4.html \
+ style-tutorial.html \
style-tutorial-1.html \
style-tutorial-2.html \
style-tutorial-3.html \
style-tutorial-4.html \
- style-tutorial.html \
- tex2xindy.pdf \
- texindy.pdf \
- toc.gif \
- xindy.pdf
+ dataflow.gif \
+ index.gif \
+ mappings.gif \
+ README
EXTRA_DIST = $(FILES)
-doc_DATA = $(FILES)
+PDFS = xindy.pdf texindy.pdf tex2xindy.pdf
+
+dist_noinst_DATA = xindy.v2.pdf makeindex4.pdf
+
+doc_DATA = $(FILES) $(PDFS)
+
+$(srcdir)/xindy.pdf: $(top_srcdir)/user-commands/xindy.1
+ groff -man -P-g $< | ps2pdf - $@
+
+$(srcdir)/texindy.pdf: $(top_srcdir)/user-commands/texindy.1
+ groff -man -P-g $< | ps2pdf - $@
+
+$(srcdir)/makeindex4.pdf: $(top_srcdir)/user-commands/makeindex4.1
+ groff -man -P-g $< | ps2pdf - $@
+
+$(srcdir)/xindy.v2.pdf: $(top_srcdir)/user-commands/xindy.v2.1
+ groff -man -P-g $< | ps2pdf - $@
+$(srcdir)/tex2xindy.pdf: $(top_srcdir)/tex2xindy/tex2xindy.1
+ groff -man -P-g $< | ps2pdf - $@
diff --git a/Build/source/utils/xindy/doc/next.gif b/Build/source/utils/xindy/doc/next.gif
deleted file mode 100644
index 7a2dbe955e0..00000000000
--- a/Build/source/utils/xindy/doc/next.gif
+++ /dev/null
Binary files differ
diff --git a/Build/source/utils/xindy/doc/prev.gif b/Build/source/utils/xindy/doc/prev.gif
deleted file mode 100644
index aef90f1fc49..00000000000
--- a/Build/source/utils/xindy/doc/prev.gif
+++ /dev/null
Binary files differ
diff --git a/Build/source/utils/xindy/doc/toc.gif b/Build/source/utils/xindy/doc/toc.gif
deleted file mode 100644
index 3d1aebf3274..00000000000
--- a/Build/source/utils/xindy/doc/toc.gif
+++ /dev/null
Binary files differ
diff --git a/Build/source/utils/xindy/tex2xindy/Makefile.am b/Build/source/utils/xindy/tex2xindy/Makefile.am
index 86153718732..5464ca5db7e 100644
--- a/Build/source/utils/xindy/tex2xindy/Makefile.am
+++ b/Build/source/utils/xindy/tex2xindy/Makefile.am
@@ -34,5 +34,12 @@ CLEANFILES = tex2xindy.c
dist-hook:
rm -f $(distdir)/tex2xindy.c
-tex2xindy.1: tex2xindy.l
- pod2man --verbose -n TEX2XINDY -r "Version 1.21" -c "xindy" $< $@
+IDENT_DATE = `ident $< | grep '\$$Id' | sed -e 's/^.*,v [^ ]* //' -e 's/ .*//' -e s:/:-:g`
+IDENT_VERSION = `ident $< | grep '\$$Id' | sed -e 's/^.*,v //' -e 's/ .*//'`
+
+$(srcdir)/tex2xindy.1: $(srcdir)/tex2xindy.l
+ pod2man --center '$(PACKAGE_NAME)' \
+ --name=$(basename $@ .1 | tr '[a-z]' '[A-Z]')
+ --release "Version $(IDENT_VERSION)" \
+ --date "$(IDENT_DATE)" \
+ $< $@
diff --git a/Build/source/utils/xindy/user-commands/Makefile.am b/Build/source/utils/xindy/user-commands/Makefile.am
index e358077bc22..29dd3d9ec54 100644
--- a/Build/source/utils/xindy/user-commands/Makefile.am
+++ b/Build/source/utils/xindy/user-commands/Makefile.am
@@ -24,8 +24,8 @@ if TETEX_BUILD
install-exec-hook: xindy xindy.v2
$(INSTALL_SCRIPT) xindy $(prefix)/texmf/scripts/xindy/
$(LN_S) ../../texmf/scripts/xindy/xindy $(bindir)/xindy
- $(INSTALL_SCRIPT) xindy.v2 $(prefix)/texmf/scripts/xindy/
- $(LN_S) ../../texmf/scripts/xindy/xindy.v2 $(bindir)/xindy.v2
+# $(INSTALL_SCRIPT) xindy.v2 $(prefix)/texmf/scripts/xindy/
+# $(LN_S) ../../texmf/scripts/xindy/xindy.v2 $(bindir)/xindy.v2
$(INSTALL_SCRIPT) $(srcdir)/texindy $(prefix)/texmf/scripts/xindy/
$(LN_S) ../../texmf/scripts/xindy/texindy $(bindir)/texindy
else
@@ -39,15 +39,27 @@ xindy: xindy.in
xindy.v2: xindy.v2.in
sed -e 's:@XINDY_PERL\@:/usr/bin/perl:' $(srcdir)/xindy.v2.in >xindy.v2
-$(srcdir)/xindy.1: $(srcdir)/xindy.in
- pod2man --verbose -n XINDY -r "Version 1.8" -c "xindy" $< $@
-
-$(srcdir)/texindy.1: $(srcdir)/texindy
- pod2man --verbose -n TEXINDY -r "Version 1.5" -c "xindy" $< $@
+man_MANS = texindy.1 xindy.1
-man_MANS = texindy.1 xindy.1 xindy.v2.1
+dist_noinst_MANS = xindy.v2.1 makeindex4.1
EXTRA_DIST = $(man_MANS)
CLEANFILES = xindy xindy.v2
+IDENT_DATE = `ident $< | grep '\$$Id' | sed -e 's/^.*,v [^ ]* //' -e 's/ .*//' -e s:/:-:g`
+IDENT_VERSION = `ident $< | grep '\$$Id' | sed -e 's/^.*,v //' -e 's/ .*//'`
+
+$(srcdir)/xindy.1: $(srcdir)/xindy.in
+ pod2man --center '$(PACKAGE_NAME)' \
+ --name=$(basename $@ .1 | tr '[a-z]' '[A-Z]')
+ --release "Version $(IDENT_VERSION)" \
+ --date "$(IDENT_DATE)" \
+ $< $@
+
+$(srcdir)/texindy.1: $(srcdir)/texindy
+ pod2man --center '$(PACKAGE_NAME)' \
+ --name=$(basename $@ .1 | tr '[a-z]' '[A-Z]')
+ --release "Version $(IDENT_VERSION)" \
+ --date "$(IDENT_DATE)" \
+ $< $@
diff --git a/Build/source/utils/xindy/user-commands/makeindex4 b/Build/source/utils/xindy/user-commands/makeindex4
new file mode 100755
index 00000000000..39820a3ade5
--- /dev/null
+++ b/Build/source/utils/xindy/user-commands/makeindex4
@@ -0,0 +1,228 @@
+#!/usr/bin/perl
+# $Id: makeindex4,v 1.9 2005/05/02 20:19:34 jschrod Exp $
+#----------------------------------------------------------------------
+#
+# This is a perl-script that wraps xindy into a makeindex-like
+# interface.
+#
+
+
+# NOTE: Usage of this script is depreciated. Use texindy instead.
+# Yes, this is Perl 4 code -- it is as old. I don't plan to change
+# that, as there's a better replacement available anyhow. Let's tell
+# this with each usage... ;-)
+
+print STDERR <<'_EOF_'
+
+NOTE: Usage of makindex4 is depreciated. This script is not supported
+any more. Please consider switching to the supported command texindy.
+
+_EOF_
+ ;
+
+
+($progname = $0) =~ s#.*/##;
+
+$Date = `date`;
+
+require "getopts.pl";
+
+# $debug = 1;
+
+$numArgs = $#ARGV; # save number of Commandline-Arguments
+
+# parse for makeindex command-line options
+&Getopts( "dcgilo:p:qrs:t:" );
+
+$debug = $opt_d;
+
+# some debug-output
+print STDERR "\@ARGV: @ARGV\n" if $debug;
+print STDERR "\$#ARGV: $#ARGV\n" if $debug;
+
+sub welcome {
+ print STDERR "\nusage:\t$progname [makeindex options] tex-index-file\n";
+ print STDERR <<EOMSG;
+
+This file is a wrapper that makes `xindy' somehow behave as
+`makeindex' does. Currenly it does not parse all command-line
+arguments and some of the flags are differently implemented in the
+xindy system. So don't expect it to be a plug-in replacement for the
+makeindex-system.
+EOMSG
+ exit(1);
+}
+
+$numArgs = $#ARGV; # number of Commandline-Arguments
+if ( $numArgs eq 0 ) # only one argument
+ { $Index = $ARGV[0]; } # the index
+else { &welcome; }
+
+print "Index = $Index\n" if $debug;
+$IndexBase = $Index;
+$IndexBase =~ s#\.[^\.]*$##;
+print "IndexBase = $IndexBase\n" if $debug;
+$TmpStyle = $IndexBase . ".xdy";
+open(STY, ">$TmpStyle");
+
+print STY <<EOSTY;
+;; This file is generated automatically by `makeindex4'.
+;; Date: $Date
+;;
+;; It is a temporary style-file that is necessary to run `xindy' properly.
+
+EOSTY
+
+if ($opt_c) { print STY <<EOSTY;
+
+;; These lines implement the blank compression defined by
+;; the -c switch of makeindex.
+
+(merge-rule " +" " " :eregexp)
+(merge-rule "^[ \t]+" "" :again :eregexp)
+(merge-rule "[ \t]+$" "" :again :eregexp)
+EOSTY
+}
+
+if ($opt_g) { print STDERR "The option -g not supported!\n"; }
+
+if ($opt_i) { $UseStdin = 1; }
+
+if ($opt_l) { print STY <<EOSTY;
+(sort-rule \" \" \"\")
+EOSTY
+}
+
+if ($opt_q) { print STDERR "The option -q not supported!\n"; }
+
+if ($opt_r) { print STDERR "The option -r not supported!\n"; }
+
+if ($opt_o) { $OutputFile = $opt_o; }
+
+if ($opt_p) { print STDERR "The option -p not supported!\n"; }
+
+if ($opt_s) { print STDERR "The option -s not supported!\n"; }
+
+if ($opt_t) { $LogFile = $opt_t; }
+
+if ( $Index eq $IndexBase ) { $Index = $IndexBase . ".idx"; }
+print "Index = $Index\n" if $debug;
+
+unless ($OutputFile) { $OutputFile = $IndexBase . ".ind"; }
+print "Outputfile = $OutputFile\n" if $debug;
+
+unless ($LogFile) { $LogFile = $IndexBase . ".ilg"; }
+print "Logfile = $LogFile\n" if $debug;
+
+$RawIndex = $IndexBase . ".raw";
+$RawIndexStat = $IndexBase . ".sta";
+
+$CmdLine = "tex2xindy $RawIndexStat < $Index > $RawIndex";
+print "\nRunning tex2xindy...\n";
+print "+ $CmdLine\n";
+system($CmdLine);
+
+open(STA, "sort $RawIndexStat | uniq |");
+
+$Attr = "(define-attributes ((";
+while( <STA> ) {
+ chop;
+ ($attr, $type) = split(/\t/);
+ if ($type eq "locref") {
+ unless ($attr eq "") {
+ $LocAttrs .= "\"$attr\" ";
+ $LocMarkup .= "(markup-locref :open \"\\$attr" .
+ "{\" :close \"}\" :attr \"$attr\")\n";
+ }
+ } else {
+ if (! $attr eq "see" ) {
+ $XrefAttrNames .= "\"$attr\" ";
+ $XrefAttrs .= "(define-crossref-class \"$attr\")\n";
+ $XrefMarkup .= "(markup-crossref-list :open \"\\$attr" .
+ "{\" :close \"}{}\")\n";
+ }
+ }
+}
+
+print STY <<EOSTY;
+
+;; The following attributes were detected.
+
+(define-attributes (($LocAttrs\"default\")))
+
+;; This is the markup as generated by makeindex.
+
+$LocMarkup
+
+;; The following cross-referernces were detected.
+
+(define-crossref-class "see")
+
+$XrefAttrs
+
+;; This is the markup as generated by makeindex.
+
+(markup-crossref-list :open "\see{" :close "}{}" :class "see")
+
+$XrefMarkup
+
+;; Here are the location-classes
+
+(define-location-class "arabic-page-numbers" ("arabic-numbers"))
+(define-location-class "roman-page-numbers" ("roman-numbers-lowercase"))
+(define-location-class "Roman-page-numbers" ("roman-numbers-uppercase"))
+(define-location-class "alpha-page-numbers" ("alpha"))
+(define-location-class "Alpha-page-numbers" ("ALPHA"))
+
+(define-location-class-order ("roman-page-numbers"
+ "arabic-page-numbers"
+ "alpha-page-numbers"
+ "Roman-page-numbers"
+ "Alpha-page-numbers"
+ "see" $XrefAttrNames))
+
+;; Now load the rest of the makeindex-module...
+
+(require "tex/makeidx4.xdy")
+
+;; End
+EOSTY
+
+close(STY);
+
+$CmdLine = "xindy.v2 -o $OutputFile -l $LogFile $TmpStyle $RawIndex";
+print "\nRunning xindy...\n";
+print "+ $CmdLine\n";
+exec($CmdLine);
+
+
+# ============================================================
+#
+# $Log: makeindex4,v $
+# Revision 1.9 2005/05/02 20:19:34 jschrod
+# Old xindy command is called xindy.v2.
+#
+# Revision 1.8 2004/10/05 21:13:21 jschrod
+# Notes that its usage is depreciated. Doesn't reference the Quick
+# Guide any more.
+# Assumes /usr/bin/perl to exist.
+#
+# Revision 1.7 1999/04/27 08:56:59 kehr
+# Another checkin.
+#
+# Revision 1.6 1997/04/03 13:49:05 kehr
+# Removed a UNIX platform dependency from the code.
+#
+# Revision 1.5 1997/02/13 14:42:47 kehr
+# Minor changes.
+#
+# Revision 1.4 1997/02/13 13:57:54 kehr
+# makeindex4 now uses the module `makeidx4.xdy'.
+#
+# Revision 1.3 1997/01/21 16:44:33 kehr
+# Bugfix: State <print> was not changed back to <key> if {LEVEL} was found.
+#
+# Revision 1.2 1997/01/17 16:30:35 kehr
+# Rewrote makeindex4 and heavily modified tex2xindy.
+#
+#
diff --git a/Build/source/utils/xindy/user-commands/makeindex4.1 b/Build/source/utils/xindy/user-commands/makeindex4.1
new file mode 100644
index 00000000000..f538bb5c0a2
--- /dev/null
+++ b/Build/source/utils/xindy/user-commands/makeindex4.1
@@ -0,0 +1,60 @@
+.\" Copyright (c) 1996,1997 Roger Kehr
+.\" See section COPYING for conditions for redistribution
+.TH makeindex4 1L "February 1997" "Roger Kehr" ""
+.de BP
+.sp
+.ti \-.2i
+\(**
+..
+
+.SH NAME
+makeindex4 \- a wrapper for the \fBxindy\fP index processor
+
+.SH SYNOPSIS
+.hy 0
+.na
+.TP
+.B makeindex4 [options]...
+
+.SH DESCRIPTION
+.B makeindex4
+is a wrapper script that uses the \fBxindy\fP system as a replacement
+for the \fBmakeindex\fP index processor. Since it cannot completely
+simulate the behaviour of \fBmakeindex\fP it is only intended as a
+workaround and should not be used in the general case. If you want to
+exploit all features of \fBxindy\fP, styles files must be written.
+
+\fBmakeindex4\fP understands all command line options of
+\fBmakeindex\fP but gives appropriate warnings for unsupported options
+at run-time.
+
+It needs \fBtex2xindy\fP and \fBxindy\fP to work properly.
+
+.SH "SEE ALSO"
+xindy(1L),
+makeindex(1L),
+tex2xindy(1L)
+
+For detailed information about \fBxindy\fP and \fBtex2xindy\fP refer
+to the documentation that come with the \fBxindy\fP distribution.
+
+.SH "AUTHOR"
+Roger Kehr, Institut fuer Theoretische Informatik, TH-Darmstadt
+
+.SH "COPYING"
+Copyright (c) 1996,1997 Roger Kehr.
+.PP
+Permission is granted to make and distribute verbatim copies of
+this manual provided the copyright notice and this permission notice
+are preserved on all copies.
+.PP
+Permission is granted to copy and distribute modified versions of this
+manual under the conditions for verbatim copying, provided that the
+entire resulting derived work is distributed under the terms of a
+permission notice identical to this one.
+.PP
+Permission is granted to copy and distribute translations of this
+manual into another language, under the above conditions for modified
+versions, except that this permission notice may be included in
+translations approved by the Free Software Foundation instead of in
+the original English.