/[pcre]/code/trunk/PrepareRelease
ViewVC logotype

Contents of /code/trunk/PrepareRelease

Parent Directory Parent Directory | Revision Log Revision Log


Revision 99 - (hide annotations) (download)
Tue Mar 6 12:27:42 2007 UTC (7 years, 9 months ago) by ph10
Original Path: code/trunk/maintain/MakeRelease
File size: 5270 byte(s)
1. Move the comment about version numbers from pcre.h.in to configure.ac 
because that's where they are now set.
2. Update all the man pages to remove the use of .br and .in because this
causes trouble for some HTML converters. Also standardised the final sections 
giving author information and revision date.
3. Update the maintain/132html man page converter to handle .nf/.fi and to barf 
at .br/.in.

1 ph10 97 #/bin/sh
2    
3     # Script to make a PCRE release
4    
5     if [ ! "$1" ]; then
6     echo "*** Version number missing ***"
7     exit 1
8     fi
9    
10     # The name of the release directory
11    
12     dir=pcre-$1
13    
14     # But sometimes we just want to process the documentation
15    
16     if [ "$1" = "doconly" ] ; then
17     doconly=yes
18     fi
19    
20    
21     # First, sort out the documentation
22    
23     cd doc
24     echo Processing documentation
25    
26     # Make Text form of the documentation. It needs some mangling to make it
27     # tidy for online reading. Concatenate all the .3 stuff, but omit the
28     # individual function pages.
29    
30     cat <<End >pcre.txt
31     -----------------------------------------------------------------------------
32     This file contains a concatenation of the PCRE man pages, converted to plain
33     text format for ease of searching with a text editor, or for use on systems
34     that do not have a man page processor. The small individual files that give
35     synopses of each function in the library have not been included. There are
36     separate text files for the pcregrep and pcretest commands.
37     -----------------------------------------------------------------------------
38    
39    
40     End
41    
42     echo "Making pcre.txt"
43     for file in pcre pcrebuild pcrematching pcreapi pcrecallout pcrecompat \
44     pcrepattern pcrepartial pcreprecompile \
45     pcreperform pcreposix pcrecpp pcresample pcrestack ; do
46     echo " Processing $file.3"
47     nroff -c -man $file.3 >$file.rawtxt
48     ../maintain/CleanTxt <$file.rawtxt >>pcre.txt
49     /bin/rm $file.rawtxt
50     echo "------------------------------------------------------------------------------" >>pcre.txt
51     if [ "$file" != "pcresample" ] ; then
52     echo " " >>pcre.txt
53     echo " " >>pcre.txt
54     fi
55     done
56    
57     # The two commands
58     for file in pcretest pcregrep ; do
59     echo Making $file.txt
60     nroff -c -man $file.1 >$file.rawtxt
61     ../maintain/CleanTxt <$file.rawtxt >$file.txt
62     /bin/rm $file.rawtxt
63     done
64    
65    
66     # Make HTML form of the documentation.
67    
68     /bin/rm html/*
69     cp ../maintain/Index.html html/index.html
70    
71     for file in *.1 ; do
72     base=`basename $file .1`
73     echo Making $base.html
74     ../maintain/132html -toc $base <$file >html/$base.html
75     done
76    
77     # Exclude table of contents for function summaries. It seems that expr
78     # forces an anchored regex. Also exclude them for small pages that have
79     # only one section.
80     for file in *.3 ; do
81     base=`basename $file .3`
82     toc=-toc
83     if [ `expr $base : '.*_'` -ne 0 ] ; then toc="" ; fi
84     if [ "$base" = "pcresample" ] || \
85     [ "$base" = "pcrestack" ] || \
86     [ "$base" = "pcrecompat" ] || \
87     [ "$base" = "pcreperform" ] ; then
88     toc=""
89     fi
90     echo Making $base.html
91     ../maintain/132html $toc $base <$file >html/$base.html
92 ph10 99 if [ $? != 0 ] ; then exit 1; fi
93 ph10 97 done
94    
95     # End of documentation processing
96    
97     cd ..
98     echo Documentation done
99    
100     if [ "$doconly" = "yes" ] ; then
101     exit 0
102     fi
103    
104     # These files are detrailed and copied; do not detrail the test data
105     # because there may be significant trailing spaces. The configure files
106     # are also omitted from the detrailing.
107    
108     files="Makefile.in configure.ac config.h.in \
109     README LICENCE COPYING AUTHORS NEWS NON-UNIX-USE INSTALL ChangeLog \
110     pcre-config.in \
111     libpcre.pc.in \
112     libpcrecpp.pc.in \
113     pcre_printint.src \
114     pcredemo.c \
115     pcregrep.c \
116     pcretest.c \
117     dftables.c \
118     pcreposix.c \
119     pcreposix.h \
120     pcre.h \
121     pcre_internal.h
122     pcre_compile.c \
123     pcre_config.c \
124     pcre_dfa_exec.c \
125     pcre_exec.c \
126     pcre_fullinfo.c \
127     pcre_get.c \
128     pcre_globals.c \
129     pcre_info.c \
130     pcre_maketables.c \
131     pcre_newline.c \
132     pcre_ord2utf8.c \
133     pcre_refcount.c \
134     pcre_study.c \
135     pcre_tables.c \
136     pcre_try_flipped.c \
137     pcre_ucp_searchfuncs.c \
138     pcre_valid_utf8.c \
139     pcre_version.c \
140     pcre_xclass.c \
141     pcre_scanner.cc \
142     pcre_scanner.h \
143     pcre_scanner_unittest.cc \
144     pcrecpp.cc \
145     pcrecpp.h \
146     pcrecpparg.h.in \
147     pcrecpp_unittest.cc \
148     pcre_stringpiece.cc \
149     pcre_stringpiece.h.in \
150     pcre_stringpiece_unittest.cc \
151     perltest.pl \
152     ucp.h \
153     ucpinternal.h \
154     ucptable.h \
155     makevp.bat \
156     RunTest.bat \
157     pcre.def \
158     libpcre.def \
159     libpcreposix.def"
160    
161     docfiles="doc/Tech.Notes doc/p*"
162    
163     echo Detrailing
164     ./maintain/Detrail $files doc/p* doc/html/*
165    
166     echo Building release
167     echo " "
168    
169     mkdir Releases/$dir
170     mkdir Releases/$dir/doc
171     mkdir Releases/$dir/testdata
172    
173     cp $files RunTest.in RunGrepTest.in configure install-sh mkinstalldirs \
174     config.guess config.sub libpcre.a.dev ltmain.sh Releases/$dir
175     cp -r doc/* Releases/$dir/doc
176    
177     cp testdata/testinput1 testdata/testoutput1 \
178     testdata/testinput2 testdata/testoutput2 \
179     testdata/testinput3 testdata/testoutput3 \
180     testdata/testinput4 testdata/testoutput4 \
181     testdata/testinput5 testdata/testoutput5 \
182     testdata/testinput6 testdata/testoutput6 \
183     testdata/testinput7 testdata/testoutput7 \
184     testdata/testinput8 testdata/testoutput8 \
185     testdata/testinput9 testdata/testoutput9 \
186     testdata/grepinput testdata/grepinputx \
187     testdata/greplist testdata/grepoutput \
188     testdata/grepinput8 testdata/grepoutput8 \
189     Releases/$dir/testdata
190    
191     # Change the comparison command for testing to the standard one
192    
193     ne Releases/$dir/RunTest.in -with /dev/null -opt "ge/cf=cf//cf=diff/"
194     ne Releases/$dir/RunGrepTest.in -with /dev/null -opt "ge/cf=cf//cf=diff/"
195    
196     cd Releases
197    
198     tar cf $dir.tar $dir
199     gzip -v --best $dir.tar
200     gpg -sb $dir.tar.gz
201    
202     tar cf $dir.tar $dir
203     bzip2 -v -9 $dir.tar
204     gpg -sb $dir.tar.bz2
205    
206     #End

Properties

Name Value
svn:executable *

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12