diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-24 23:41:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-24 23:41:28 +0000 |
commit | 76fa5e8e1df302a76387fdcd18ae069d1b4fed02 (patch) | |
tree | 7c9f3e16947ba6de1e04ff5746d8f53cd21afabe /Master/texmf-dist/doc/eplain/util | |
parent | d9694ce1fb8dd23d0e0854338fff8c6cddc28d19 (diff) |
eplain 3.3 (24jul09)
git-svn-id: svn://tug.org/texlive/trunk@14435 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/eplain/util')
-rw-r--r-- | Master/texmf-dist/doc/eplain/util/idxuniq | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/eplain/util/trimsee | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/eplain/util/idxuniq b/Master/texmf-dist/doc/eplain/util/idxuniq index 6ee7d225f5c..599d9b593cb 100644 --- a/Master/texmf-dist/doc/eplain/util/idxuniq +++ b/Master/texmf-dist/doc/eplain/util/idxuniq @@ -1,26 +1,28 @@ #!/usr/bin/awk -f - +# # (This file is public domain.) - +# +# This file is part of the Eplain macro package. +# # This script filters input lines (which are expected to be a list of # `\indexentry' lines for MakeIndex) eliminating matching lines. The comparison # is done without regard to hyperlink label names (in the form `IDX*', where `*' # stands for a non-negative integer). - +# # This has to be done to avoid terms which differ only in hyperlink label names # embedded into them, because MakeIndex will treat these otherwise identical # terms as distinct, listing more than once a page number for equivalent terms # on the same page. - +# # `stripped' array is indexed by `\indexentry' lines stripped off the hyperlink # label name. For each term, we use its stripped version as a key into the # `stripped' array to increment its element. This records the fact that we have # seen the term with such key. Also, we add the (full) `\indexentry' line to # the `terms' array, but only if we have not yet seen a term with such key. - +# # The idea was borrowed from Edition 3 of `GAWK: Effective AWK Programming: A # User's Guide for GNU Awk', which contains the following credit: - +# # histsort.awk --- compact a shell history file # Thanks to Byron Rakitzis for the general idea diff --git a/Master/texmf-dist/doc/eplain/util/trimsee b/Master/texmf-dist/doc/eplain/util/trimsee index 8af5ebe6434..00459956f47 100644 --- a/Master/texmf-dist/doc/eplain/util/trimsee +++ b/Master/texmf-dist/doc/eplain/util/trimsee @@ -1,6 +1,6 @@ #!/bin/sh - # (This file is public domain.) +# This file is part of the Eplain macro package. help () { @@ -25,7 +25,7 @@ EOF check_missing_arg () { - if (( $1 < 2 )); then + if test "$1" -lt 2; then echo "Missing argument to option '$2'" 1>&2 exit 1 fi |