| 4 |
# processing of the documentation, detrails files, and creates pcre.h.generic |
# processing of the documentation, detrails files, and creates pcre.h.generic |
| 5 |
# and config.h.generic (for use by builders who can't run ./configure). |
# and config.h.generic (for use by builders who can't run ./configure). |
| 6 |
|
|
| 7 |
# You must run this script before runnning "make dist". It makes use of the |
# You must run this script before runnning "make dist". If its first argument |
| 8 |
# following files: |
# is "doc", it stops after preparing the documentation. There are no other |
| 9 |
|
# arguments. The script makes use of the following files: |
| 10 |
|
|
| 11 |
# 132html A Perl script that converts a .1 or .3 man page into HTML. It |
# 132html A Perl script that converts a .1 or .3 man page into HTML. It |
| 12 |
# "knows" the relevant troff constructs that are used in the PCRE |
# "knows" the relevant troff constructs that are used in the PCRE |
| 120 |
# Exclude table of contents for function summaries. It seems that expr |
# Exclude table of contents for function summaries. It seems that expr |
| 121 |
# forces an anchored regex. Also exclude them for small pages that have |
# forces an anchored regex. Also exclude them for small pages that have |
| 122 |
# only one section. |
# only one section. |
| 123 |
|
|
| 124 |
for file in *.3 ; do |
for file in *.3 ; do |
| 125 |
base=`basename $file .3` |
base=`basename $file .3` |
| 126 |
toc=-toc |
toc=-toc |
| 136 |
if [ $? != 0 ] ; then exit 1; fi |
if [ $? != 0 ] ; then exit 1; fi |
| 137 |
done |
done |
| 138 |
|
|
| 139 |
# End of documentation processing |
# End of documentation processing; stop if only documentation required. |
| 140 |
|
|
| 141 |
cd .. |
cd .. |
| 142 |
echo Documentation done |
echo Documentation done |
| 143 |
|
if [ "$1" = "doc" ] ; then exit; fi |
| 144 |
|
|
| 145 |
# These files are detrailed; do not detrail the test data because there may be |
# These files are detrailed; do not detrail the test data because there may be |
| 146 |
# significant trailing spaces. The configure files are also omitted from the |
# significant trailing spaces. The configure files are also omitted from the |