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

Contents of /code/trunk/PrepareRelease

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (hide annotations) (download)
Mon Mar 5 12:36:47 2007 UTC (7 years, 8 months ago) by ph10
Original Path: code/trunk/maintain/MakeRelease
File size: 5234 byte(s)
Applied Bob and Daniel's patches to convert the build system to automake. Added 
the maintain directory, containing files that are used for maintenance, but are 
not distributed. This is an intermediate step.

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     done
93    
94     # End of documentation processing
95    
96     cd ..
97     echo Documentation done
98    
99     if [ "$doconly" = "yes" ] ; then
100     exit 0
101     fi
102    
103     # These files are detrailed and copied; do not detrail the test data
104     # because there may be significant trailing spaces. The configure files
105     # are also omitted from the detrailing.
106    
107     files="Makefile.in configure.ac config.h.in \
108     README LICENCE COPYING AUTHORS NEWS NON-UNIX-USE INSTALL ChangeLog \
109     pcre-config.in \
110     libpcre.pc.in \
111     libpcrecpp.pc.in \
112     pcre_printint.src \
113     pcredemo.c \
114     pcregrep.c \
115     pcretest.c \
116     dftables.c \
117     pcreposix.c \
118     pcreposix.h \
119     pcre.h \
120     pcre_internal.h
121     pcre_compile.c \
122     pcre_config.c \
123     pcre_dfa_exec.c \
124     pcre_exec.c \
125     pcre_fullinfo.c \
126     pcre_get.c \
127     pcre_globals.c \
128     pcre_info.c \
129     pcre_maketables.c \
130     pcre_newline.c \
131     pcre_ord2utf8.c \
132     pcre_refcount.c \
133     pcre_study.c \
134     pcre_tables.c \
135     pcre_try_flipped.c \
136     pcre_ucp_searchfuncs.c \
137     pcre_valid_utf8.c \
138     pcre_version.c \
139     pcre_xclass.c \
140     pcre_scanner.cc \
141     pcre_scanner.h \
142     pcre_scanner_unittest.cc \
143     pcrecpp.cc \
144     pcrecpp.h \
145     pcrecpparg.h.in \
146     pcrecpp_unittest.cc \
147     pcre_stringpiece.cc \
148     pcre_stringpiece.h.in \
149     pcre_stringpiece_unittest.cc \
150     perltest.pl \
151     ucp.h \
152     ucpinternal.h \
153     ucptable.h \
154     makevp.bat \
155     RunTest.bat \
156     pcre.def \
157     libpcre.def \
158     libpcreposix.def"
159    
160     docfiles="doc/Tech.Notes doc/p*"
161    
162     echo Detrailing
163     ./maintain/Detrail $files doc/p* doc/html/*
164    
165     echo Building release
166     echo " "
167    
168     mkdir Releases/$dir
169     mkdir Releases/$dir/doc
170     mkdir Releases/$dir/testdata
171    
172     cp $files RunTest.in RunGrepTest.in configure install-sh mkinstalldirs \
173     config.guess config.sub libpcre.a.dev ltmain.sh Releases/$dir
174     cp -r doc/* Releases/$dir/doc
175    
176     cp testdata/testinput1 testdata/testoutput1 \
177     testdata/testinput2 testdata/testoutput2 \
178     testdata/testinput3 testdata/testoutput3 \
179     testdata/testinput4 testdata/testoutput4 \
180     testdata/testinput5 testdata/testoutput5 \
181     testdata/testinput6 testdata/testoutput6 \
182     testdata/testinput7 testdata/testoutput7 \
183     testdata/testinput8 testdata/testoutput8 \
184     testdata/testinput9 testdata/testoutput9 \
185     testdata/grepinput testdata/grepinputx \
186     testdata/greplist testdata/grepoutput \
187     testdata/grepinput8 testdata/grepoutput8 \
188     Releases/$dir/testdata
189    
190     # Change the comparison command for testing to the standard one
191    
192     ne Releases/$dir/RunTest.in -with /dev/null -opt "ge/cf=cf//cf=diff/"
193     ne Releases/$dir/RunGrepTest.in -with /dev/null -opt "ge/cf=cf//cf=diff/"
194    
195     cd Releases
196    
197     tar cf $dir.tar $dir
198     gzip -v --best $dir.tar
199     gpg -sb $dir.tar.gz
200    
201     tar cf $dir.tar $dir
202     bzip2 -v -9 $dir.tar
203     gpg -sb $dir.tar.bz2
204    
205     #End

Properties

Name Value
svn:executable *

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12