| 17 |
|
|
| 18 |
# Detrail A Perl script that removes trailing spaces from files. |
# Detrail A Perl script that removes trailing spaces from files. |
| 19 |
|
|
| 20 |
# Index.html A file that is copied as index.html into the doc/html |
# doc/index.html.src |
| 21 |
# directory when the HTML documentation is built. It works like |
# A file that is copied as index.html into the doc/html directory |
| 22 |
# this so that doc/html can be deleted and re-created from scratch. |
# when the HTML documentation is built. It works like this so that |
| 23 |
|
# doc/html can be deleted and re-created from scratch. |
| 24 |
|
|
| 25 |
|
|
| 26 |
# First, sort out the documentation |
# First, sort out the documentation |
| 46 |
|
|
| 47 |
echo "Making pcre.txt" |
echo "Making pcre.txt" |
| 48 |
for file in pcre pcrebuild pcrematching pcreapi pcrecallout pcrecompat \ |
for file in pcre pcrebuild pcrematching pcreapi pcrecallout pcrecompat \ |
| 49 |
pcrepattern pcrepartial pcreprecompile \ |
pcrepattern pcresyntax pcrepartial pcreprecompile \ |
| 50 |
pcreperform pcreposix pcrecpp pcresample pcrestack ; do |
pcreperform pcreposix pcrecpp pcresample pcrestack ; do |
| 51 |
echo " Processing $file.3" |
echo " Processing $file.3" |
| 52 |
nroff -c -man $file.3 >$file.rawtxt |
nroff -c -man $file.3 >$file.rawtxt |
| 59 |
fi |
fi |
| 60 |
done |
done |
| 61 |
|
|
| 62 |
# The two commands |
# The three commands |
| 63 |
for file in pcretest pcregrep ; do |
for file in pcretest pcregrep pcre-config ; do |
| 64 |
echo Making $file.txt |
echo Making $file.txt |
| 65 |
nroff -c -man $file.1 >$file.rawtxt |
nroff -c -man $file.1 >$file.rawtxt |
| 66 |
../CleanTxt <$file.rawtxt >$file.txt |
../CleanTxt <$file.rawtxt >$file.txt |
| 72 |
|
|
| 73 |
echo "Making HTML documentation" |
echo "Making HTML documentation" |
| 74 |
/bin/rm html/* |
/bin/rm html/* |
| 75 |
cp ../Index.html html/index.html |
cp index.html.src html/index.html |
| 76 |
|
|
| 77 |
for file in *.1 ; do |
for file in *.1 ; do |
| 78 |
base=`basename $file .1` |
base=`basename $file .1` |
| 123 |
Detrail \ |
Detrail \ |
| 124 |
ChangeLog \ |
ChangeLog \ |
| 125 |
CMakeLists.txt \ |
CMakeLists.txt \ |
| 126 |
RunGrepTest.in \ |
RunGrepTest \ |
| 127 |
RunTest.in \ |
RunTest \ |
| 128 |
RunTest.bat \ |
RunTest.bat \ |
| 129 |
pcre-config.in \ |
pcre-config.in \ |
| 130 |
libpcre.pc.in \ |
libpcre.pc.in \ |
| 132 |
config.h \ |
config.h \ |
| 133 |
config.h.in \ |
config.h.in \ |
| 134 |
pcre_printint.src \ |
pcre_printint.src \ |
| 135 |
|
pcre_chartables.c.dist \ |
| 136 |
pcredemo.c \ |
pcredemo.c \ |
| 137 |
pcregrep.c \ |
pcregrep.c \ |
| 138 |
pcretest.c \ |
pcretest.c \ |
| 183 |
echo Detrailing |
echo Detrailing |
| 184 |
./Detrail $files doc/p* doc/html/* |
./Detrail $files doc/p* doc/html/* |
| 185 |
|
|
| 186 |
|
echo Doing basic configure to get default pcre.h and config.h |
| 187 |
|
# This is in case the caller has set aliases (as I do - PH) |
| 188 |
|
unset cp ls mv rm |
| 189 |
|
./configure >/dev/null |
| 190 |
|
|
| 191 |
echo Converting pcre.h and config.h to generic forms |
echo Converting pcre.h and config.h to generic forms |
| 192 |
cp -f pcre.h pcre.h.generic |
cp -f pcre.h pcre.h.generic |
| 193 |
|
|
| 211 |
close OUT; |
close OUT; |
| 212 |
END |
END |
| 213 |
|
|
| 214 |
|
echo Done |
| 215 |
|
|
| 216 |
#End |
#End |