OpenBSD CVS

CVS log for src/libexec/makewhatis/Attic/makewhatis.pl


[BACK] Up to [local] / src / libexec / makewhatis

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30, Fri Aug 6 12:05:08 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: HEAD
Changes since 1.29: +1 -1 lines
FILE REMOVED

Reorganize makewhatis in smaller modules.
Avoid pulling unneeded code: for instance, if you have only formated
manpages in your system, Unformated will never be used; Check put aside
and only used in -p mode. -t mode won't pull Whatis. Find; File::Compare
and File::Copy and File::Temp likewise.

okay millert@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 1 20:13:24 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.28: +6 -5 lines
Diff to previous 1.28 (colored)

zap extra spaces. From a PR by Jared Yanovich.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Feb 11 18:50:43 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

some sections came out wrong (no space) in SDL.
ggi has func, func2, func3 : description, give it a fighting chance.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Feb 11 18:48:43 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

more accurate .so test.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Feb 10 18:54:57 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

misleading regexp -> pattern

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 10 18:51:31 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.24: +38 -10 lines
Diff to previous 1.24 (colored)

harder check in picky mode: find the page AND verify it is the same.
Prompted by jmc@.

Stop at first isolated dash in line.

Handle more troff hyphenation.

okay millert@, jmc@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jul 9 10:00:09 2003 UTC (20 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +23 -2 lines
Diff to previous 1.23 (colored)

-u option, remove manpages, symetrical to -d.
ok millert@

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 7 22:23:04 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Don't complain about missing man dirs unless in picky mode or if
there is something other than a dir in the way.  Closes PR 2935.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 15 15:56:16 2002 UTC (21 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Use old-style version number when requiring at least perl 5.6.0.
Fixes a portability warning from perl-5.8.0; espie@ OK

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 16 20:07:07 2002 UTC (22 years, 1 month ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

skip over comment while parsing subject.
(Repair bus_space.9 parsing, not visible on formatted version)

Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 2 03:17:16 2002 UTC (22 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.19: +12 -3 lines
Diff to previous 1.19 (colored)

A few improvements to accommodate more ports.
- recognize unbreakable em dashes from pod2man,
- handle some user-defined font changes,
- kill obvious non-subjects.

ok millert@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Apr 3 16:33:49 2001 UTC (23 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 (colored)

throw \v and \h alignments out.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 14 10:58:05 2001 UTC (23 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.17: +6 -1 lines
Diff to previous 1.17 (colored)

ad-hoc code to deal with troff hyphenation in preformatted pages.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 14 10:57:13 2001 UTC (23 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.16: +4 -1 lines
Diff to previous 1.16 (colored)

more bizarre constructs that occur in some man pages.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 14 10:56:24 2001 UTC (23 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (colored)

Allow makewhatis -p -t filename, without full path.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Feb 25 09:04:25 2001 UTC (23 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.14: +7 -5 lines
Diff to previous 1.14 (colored)

oops, add missing arguments in some calls.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 8 13:46:11 2000 UTC (23 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

strip sequences of spaces AFTER stripping other weird characters.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 22 20:32:57 2000 UTC (23 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.12: +28 -20 lines
Diff to previous 1.12 (colored)

More tweaks  to recognize more weird cases:

- handle \s+n as well as \s-n,
- be smarter in finding name - subject delimitation in the presence of
multiple dashes, always prefer a dash with intervening spaces if one is
available,
- handle spaces in macros everywhere,
- recognize \(tm,
- recognize .SM as a font change,
- recognize .LP as another multiple subject separator,
- strip indexing facilities .iX and .XX,
- complain about unknown macros in picky mode, strip them anyways.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 19 13:30:17 2000 UTC (23 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.11: +51 -9 lines
Diff to previous 1.11 (colored)

Handle more manpages oddities:

- recognizes \s<number> sequences (horizontal kerning) and removes them.
- escaped |

- parses .ds definitions, expands \*(ab and \*[abc...]
(missing built-ins, such as en and em).

- strips .HP, .VB
- recognizes .Pp

- handles some .   ds (space in between).

This fixes over 99% of all manpages generated from the ports tree.
This is still missing a few cleanups and some regression testing.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Wed Jul 12 13:54:30 2000 UTC (23 years, 10 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.9: +6 -4 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Pull in patch from current:
Fix (espie):
A non existent directory should not prevent makewhatis from looking
further. Noticed by Jon Ribbens <jon@oaktree.co.uk>

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 31 18:38:30 2000 UTC (24 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

Request from Theo:

- name tmp file after makewhatis, make it easier to track in case of
trouble.

- remove tmp file always, two minutes to regenerate top

Revision 1.10 / (download) - annotate - [select for diffs], Wed May 17 12:09:00 2000 UTC (24 years ago) by espie
Branch: MAIN
Changes since 1.9: +6 -4 lines
Diff to previous 1.9 (colored)

A non existent directory should not prevent makewhatis from looking
further. Noticed by Jon Ribbens <jon@oaktree.co.uk>

Revision 1.9 / (download) - annotate - [select for diffs], Sat Apr 29 20:40:04 2000 UTC (24 years, 1 month ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.8: +30 -12 lines
Diff to previous 1.8 (colored)

Use perl 5.6.0 features:
- don't use IO::File, autovivify handles instead,
- use open 3 args mode for security,
- pipe return code is now useful, so use it.

Don't install the whatis.db file directly, instead put it in a tmp location,
and copy it only if it changed: this avoids spurious errors on ro /usr.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 26 15:44:18 2000 UTC (24 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.7: +62 -11 lines
Diff to previous 1.7 (colored)

Try harder to find a full subject line.

In pricky mode, verify the subject line: for each name,
check that there indeed is a man page with the right name around.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 23 22:14:28 2000 UTC (24 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.6: +102 -57 lines
Diff to previous 1.6 (colored)

With perl 5.6.0, GetOpt::Std is functional, use it.
Add -p (prick) and -t (test) option.
reword error handling as follows:
makewhatis tries harder to find section and/or subject lines in man pages,
even when the formatting is slightly incorrect.
-p mode diagnoses problems.
-t can be used to quickly test a new man page.
Approved by millert@.  aaron@ would like `The options are as follows...'
style, but:
- I don't think this would be as clear,
- he hasn't come up with actual replacement text yet...

At least this is accurate documentation.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 12 20:46:18 2000 UTC (24 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored)

Limited EUC heuristics, should handle bold wide characters correctly,
and recognize `NAME' in japanese manpages.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 4 15:31:06 2000 UTC (24 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Scan l and n sections as well.
Noticed by Hal Snyder.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 31 15:56:59 2000 UTC (24 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.3: +277 -277 lines
Diff to previous 1.3 (colored)

Reformat with ts=8, after some prodding from Tom Christiansen :)

Revision 1.3 / (download) - annotate - [select for diffs], Fri Mar 31 15:55:06 2000 UTC (24 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.2: +147 -33 lines
Diff to previous 1.2 (colored)

Parse nroff source directly as well, don't use getNAME which is awful
at doing this.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 5 22:15:16 2000 UTC (24 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.1: +64 -24 lines
Diff to previous 1.1 (colored)

Much better at handling formatted manpages.
- remove all boldface c^Hc -> c,
- handle `multiple subjets' manpages correctly (e.g. perl),
- warns about stuff that ought to be manpages, but isn't proper
(ffs_softupdates and safe_finger are missing subject lines, BTW).

So, all the perl documentation is finally grokked correctly.
Todd's baby is missing quite a few manpages links...

Revision 1.1 / (download) - annotate - [select for diffs], Thu Feb 3 18:10:48 2000 UTC (24 years, 4 months ago) by espie
Branch: MAIN

Switch to perl: *much* faster (about ten times), *much* more flexible,
simpler to understand (no more sed), and no temporary files.

Some useful comment by Matt Patton.

Ok'ed millert@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.