From xemacs-cvs at xemacs.org Mon Feb 27 02:23:47 2017 Content-Type: multipart/mixed; boundary="===============3019181137857376707==" MIME-Version: 1.0 From: CVS Monitor To: xemacs-cvs at xemacs.org Subject: CVS update: MODIFIED: website ... Date: 2005-02-01 08:17:58 +0000 Message-ID: <20050201081758.28193.qmail@sunsite.dk> --===============3019181137857376707== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable User: adrian = Date: 05/02/01 09:17:58 Modified: xemacs-builds/adrian/website HTMLindex.pl Log: sub skip_index to return success or failure. sub insert_index to improve quoting of @cmd_line. sub main to use return value of sub skip_index. = Revision Changes Path 1.56 +19 -14 XEmacs/xemacs-builds/adrian/website/HTMLindex.pl = (In the diff below, changes in quantity of whitespace are not shown.) = Index: HTMLindex.pl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /pack/xemacscvs/XEmacs/xemacs-builds/adrian/website/HTMLindex.p= l,v retrieving revision 1.55 retrieving revision 1.56 diff -u -b -r1.55 -r1.56 --- HTMLindex.pl 2003/03/18 19:43:44 1.55 +++ HTMLindex.pl 2005/02/01 08:17:57 1.56 @@ -5,7 +5,7 @@ # # Adrian Aichner, Teradyne GmbH. Munich, Sat, May. 06 1995. # -# $Id: HTMLindex.pl,v 1.55 2003/03/18 19:43:44 adrian Exp $ +# $Id: HTMLindex.pl,v 1.56 2005/02/01 08:17:57 adrian Exp $ # = # Functionality common to indexing HTML and XML files. @@ -28,7 +28,7 @@ use vars qw($VERSION @EXPORT @EXPORT_OK %EXPORT_TAGS); # $VERSION =3D 1.00; # if using RCS/CVS, this may be preferred - $VERSION =3D do { my @r =3D (q$Revision: 1.55 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker + $VERSION =3D do { my @r =3D (q$Revision: 1.56 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker @EXPORT =3D qw(); %EXPORT_TAGS =3D ( ); # eg: TAG =3D> [ qw!name1 name2! ], # your exported package globals go here, @@ -121,17 +121,18 @@ my $self =3D $_[0]; # Old index intro up to 1.50. if (m|

This\s+index\s+was\s+generated\s+by|i - .. m|


|i) { - next; + .. m||i) { + return 1; } # New index intro as of 1.51. if (m|

Document Index

|i - .. m|
|i) { - next; + .. m||i) { + return 1; } if (m|

Goto Index<= /p>|i) { - next; + return 1; } + return 0; } = sub collect_headlines { @@ -314,10 +315,12 @@ print "$prefix

Document Index

\n"; print "$prefix \n$prefix
    \n"; + my @cmd_line_escaped =3D map { + sprintf("'$_'", $_); + } @cmd_line; + print "@cmd_line_escaped" . " -->\n$prefix
      \n"; print "$prefix
    • Goto Top
    • \n"; if ($sort) { @index =3D sort byText @index; @@ -350,7 +353,7 @@ use vars qw($VERSION @EXPORT @EXPORT_OK %EXPORT_TAGS); # $VERSION =3D 1.00; # if using RCS/CVS, this may be preferred - $VERSION =3D do { my @r =3D (q$Revision: 1.55 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker + $VERSION =3D do { my @r =3D (q$Revision: 1.56 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker @EXPORT =3D qw(); %EXPORT_TAGS =3D ( ); # eg: TAG =3D> [ qw!name1 name2! ], # your exported package globals go here, @@ -386,7 +389,7 @@ use vars qw($VERSION @EXPORT @EXPORT_OK %EXPORT_TAGS); # $VERSION =3D 1.00; # if using RCS/CVS, this may be preferred - $VERSION =3D do { my @r =3D (q$Revision: 1.55 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker + $VERSION =3D do { my @r =3D (q$Revision: 1.56 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker @EXPORT =3D qw(); %EXPORT_TAGS =3D ( ); # eg: TAG =3D> [ qw!name1 name2! ], # your exported package globals go here, @@ -549,7 +552,7 @@ use vars qw($VERSION @EXPORT @EXPORT_OK %EXPORT_TAGS); # $VERSION =3D 1.00; # if using RCS/CVS, this may be preferred - $VERSION =3D do { my @r =3D (q$Revision: 1.55 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker + $VERSION =3D do { my @r =3D (q$Revision: 1.56 $ =3D~ /\d+/g); sprint= f "%d."."%02d" x $#r, @r }; # must be all one line, for MakeMaker @EXPORT =3D qw(); %EXPORT_TAGS =3D ( ); # eg: TAG =3D> [ qw!name1 name2! ], # your exported package globals go here, @@ -645,7 +648,9 @@ # APA: If a Markup Language indexer has been instantiated, # then use it! if (ref $indexer and $indexer->isa('ML::Indexer')) { - $indexer->skip_index(); + if ($indexer->skip_index() =3D=3D 1) { + next; + } if ($opt_headline) { $indexer->collect_headlines(); } = = =20 --===============3019181137857376707==--