~ubuntu-branches/ubuntu/utopic/pcre3/utopic-proposed

« back to all changes in this revision

Viewing changes to PrepareRelease

  • Committer: Bazaar Package Importer
  • Author(s): Mark Baker
  • Date: 2010-05-07 21:18:05 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100507211805-hgyyr2003bmbu54m
Tags: 8.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# processing of the documentation, detrails files, and creates pcre.h.generic
5
5
# and config.h.generic (for use by builders who can't run ./configure).
6
6
 
7
 
# You must run this script before runnning "make dist". It makes use of the
8
 
# following files:
 
7
# You must run this script before runnning "make dist". If its first argument
 
8
# is "doc", it stops after preparing the documentation. There are no other
 
9
# arguments. The script makes use of the following files:
9
10
 
10
11
# 132html     A Perl script that converts a .1 or .3 man page into HTML. It
11
 
#             is called from MakeRelease. It "knows" the relevant troff
12
 
#             constructs that are used in the PCRE man pages.
 
12
#             "knows" the relevant troff constructs that are used in the PCRE
 
13
#             man pages.
13
14
 
14
15
# CleanTxt    A Perl script that cleans up the output of "nroff -man" by
15
16
#             removing backspaces and other redundant text so as to produce
37
38
This file contains a concatenation of the PCRE man pages, converted to plain
38
39
text format for ease of searching with a text editor, or for use on systems
39
40
that do not have a man page processor. The small individual files that give
40
 
synopses of each function in the library have not been included. There are
41
 
separate text files for the pcregrep and pcretest commands.
 
41
synopses of each function in the library have not been included. Neither has 
 
42
the pcredemo program. There are separate text files for the pcregrep and
 
43
pcretest commands.
42
44
-----------------------------------------------------------------------------
43
45
 
44
46
 
68
70
done
69
71
 
70
72
 
 
73
# Make pcredemo.3 from the pcredemo.c source file
 
74
 
 
75
echo "Making pcredemo.3"
 
76
perl <<"END" >pcredemo.3
 
77
  open(IN, "../pcredemo.c") || die "Failed to open pcredemo.c\n";
 
78
  open(OUT, ">pcredemo.3") || die "Failed to open pcredemo.3\n";
 
79
  print OUT ".\\\" Start example.\n" .
 
80
            ".de EX\n" .
 
81
            ".  nr mE \\\\n(.f\n" .
 
82
            ".  nf\n" .
 
83
            ".  nh\n" .
 
84
            ".  ft CW\n" .
 
85
            "..\n" .
 
86
            ".\n" .
 
87
            ".\n" .
 
88
            ".\\\" End example.\n" .
 
89
            ".de EE\n" .
 
90
            ".  ft \\\\n(mE\n" .
 
91
            ".  fi\n" .
 
92
            ".  hy \\\\n(HY\n" .
 
93
            "..\n" .
 
94
            ".\n" .
 
95
            ".EX\n" ; 
 
96
  while (<IN>)
 
97
    {
 
98
    s/\\/\\e/g;
 
99
    print OUT;
 
100
    }
 
101
  print OUT ".EE\n";
 
102
  close(IN);
 
103
  close(OUT);    
 
104
END
 
105
if [ $? != 0 ] ; then exit 1; fi
 
106
 
 
107
 
71
108
# Make HTML form of the documentation.
72
109
 
73
110
echo "Making HTML documentation"
83
120
# Exclude table of contents for function summaries. It seems that expr
84
121
# forces an anchored regex. Also exclude them for small pages that have
85
122
# only one section.
 
123
 
86
124
for file in *.3 ; do
87
125
  base=`basename $file .3`
88
126
  toc=-toc
98
136
  if [ $? != 0 ] ; then exit 1; fi
99
137
done
100
138
 
101
 
# End of documentation processing
 
139
# End of documentation processing; stop if only documentation required.
102
140
 
103
141
cd ..
104
142
echo Documentation done
 
143
if [ "$1" = "doc" ] ; then exit; fi
105
144
 
106
145
# These files are detrailed; do not detrail the test data because there may be
107
146
# significant trailing spaces. The configure files are also omitted from the
128
167
  RunTest.bat \
129
168
  pcre-config.in \
130
169
  libpcre.pc.in \
 
170
  libpcreposix.pc.in \
131
171
  libpcrecpp.pc.in \
132
172
  config.h.in \
133
173
  pcre_printint.src \