diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-09-01 16:10:16 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-09-01 16:10:16 +0000 |
commit | dbbbb5f823318e1665b0ae6fb2f7c12d71f66e84 (patch) | |
tree | 031067dfea13ed6f72701de1b45c97fec9e0c455 /PrepareRelease | |
parent | 78dd3d00385e8c5f868d07b3fe21694299a183fe (diff) | |
download | pcre-dbbbb5f823318e1665b0ae6fb2f7c12d71f66e84.tar.gz |
Add pcredemo man page, containing a listing of pcredemo.c.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@429 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'PrepareRelease')
-rwxr-xr-x | PrepareRelease | 44 |
1 files changed, 40 insertions, 4 deletions
diff --git a/PrepareRelease b/PrepareRelease index a4f3485..de63e78 100755 --- a/PrepareRelease +++ b/PrepareRelease @@ -8,8 +8,8 @@ # following files: # 132html A Perl script that converts a .1 or .3 man page into HTML. It -# is called from MakeRelease. It "knows" the relevant troff -# constructs that are used in the PCRE man pages. +# "knows" the relevant troff constructs that are used in the PCRE +# man pages. # CleanTxt A Perl script that cleans up the output of "nroff -man" by # removing backspaces and other redundant text so as to produce @@ -37,8 +37,9 @@ cat <<End >pcre.txt This file contains a concatenation of the PCRE man pages, converted to plain text format for ease of searching with a text editor, or for use on systems that do not have a man page processor. The small individual files that give -synopses of each function in the library have not been included. There are -separate text files for the pcregrep and pcretest commands. +synopses of each function in the library have not been included. Neither has +the pcredemo program. There are separate text files for the pcregrep and +pcretest commands. ----------------------------------------------------------------------------- @@ -68,6 +69,41 @@ for file in pcretest pcregrep pcre-config ; do done +# Make pcredemo.3 from the pcredemo.c source file + +echo "Making pcredemo.3" +perl <<"END" >pcredemo.3 + open(IN, "../pcredemo.c") || die "Failed to open pcredemo.c\n"; + open(OUT, ">pcredemo.3") || die "Failed to open pcredemo.3\n"; + print OUT ".\\\" Start example.\n" . + ".de EX\n" . + ". nr mE \\\\n(.f\n" . + ". nf\n" . + ". nh\n" . + ". ft CW\n" . + "..\n" . + ".\n" . + ".\n" . + ".\\\" End example.\n" . + ".de EE\n" . + ". ft \\\\n(mE\n" . + ". fi\n" . + ". hy \\\\n(HY\n" . + "..\n" . + ".\n" . + ".EX\n" ; + while (<IN>) + { + s/\\/\\e/g; + print OUT; + } + print OUT ".EE\n"; + close(IN); + close(OUT); +END +if [ $? != 0 ] ; then exit 1; fi + + # Make HTML form of the documentation. echo "Making HTML documentation" |