12 |
# "knows" the relevant troff constructs that are used in the PCRE |
# "knows" the relevant troff constructs that are used in the PCRE |
13 |
# man pages. |
# man pages. |
14 |
|
|
15 |
|
# CheckMan A Perl script that checks man pages for typos in the mark up. |
16 |
|
|
17 |
# CleanTxt A Perl script that cleans up the output of "nroff -man" by |
# CleanTxt A Perl script that cleans up the output of "nroff -man" by |
18 |
# removing backspaces and other redundant text so as to produce |
# removing backspaces and other redundant text so as to produce |
19 |
# a readable .txt file. |
# a readable .txt file. |
26 |
# doc/html can be deleted and re-created from scratch. |
# doc/html can be deleted and re-created from scratch. |
27 |
|
|
28 |
|
|
29 |
# First, sort out the documentation |
# First, sort out the documentation. Remove pcredemo.3 first because it won't |
30 |
|
# pass the markup check (it is created below, using markup that none of the |
31 |
|
# other pages use). |
32 |
|
|
33 |
cd doc |
cd doc |
34 |
echo Processing documentation |
echo Processing documentation |
35 |
|
|
36 |
|
/bin/rm -f pcredemo.3 |
37 |
|
|
38 |
|
# Check the remaining man pages |
39 |
|
|
40 |
|
../CheckMan *.1 *.3 |
41 |
|
if [ $? != 0 ] ; then exit 1; fi |
42 |
|
|
43 |
# Make Text form of the documentation. It needs some mangling to make it |
# Make Text form of the documentation. It needs some mangling to make it |
44 |
# tidy for online reading. Concatenate all the .3 stuff, but omit the |
# tidy for online reading. Concatenate all the .3 stuff, but omit the |
45 |
# individual function pages. |
# individual function pages. |