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

Diff of /code/trunk/PrepareRelease

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 583 by ph10, Tue Jan 11 16:49:55 2011 UTC revision 783 by ph10, Mon Dec 5 10:29:19 2011 UTC
# Line 37  echo Processing documentation Line 37  echo Processing documentation
37    
38  # Check the remaining man pages  # Check the remaining man pages
39    
40  ../CheckMan *.1 *.3  perl ../CheckMan *.1 *.3
41  if [ $? != 0 ] ; then exit 1; fi  if [ $? != 0 ] ; then exit 1; fi
42    
43  # Make Text form of the documentation. It needs some mangling to make it  # Make Text form of the documentation. It needs some mangling to make it
# Line 49  cat <<End >pcre.txt Line 49  cat <<End >pcre.txt
49  This file contains a concatenation of the PCRE man pages, converted to plain  This file contains a concatenation of the PCRE man pages, converted to plain
50  text format for ease of searching with a text editor, or for use on systems  text format for ease of searching with a text editor, or for use on systems
51  that do not have a man page processor. The small individual files that give  that do not have a man page processor. The small individual files that give
52  synopses of each function in the library have not been included. Neither has  synopses of each function in the library have not been included. Neither has
53  the pcredemo program. There are separate text files for the pcregrep and  the pcredemo program. There are separate text files for the pcregrep and
54  pcretest commands.  pcretest commands.
55  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
# Line 59  End Line 59  End
59    
60  echo "Making pcre.txt"  echo "Making pcre.txt"
61  for file in pcre pcrebuild pcrematching pcreapi pcrecallout pcrecompat \  for file in pcre pcrebuild pcrematching pcreapi pcrecallout pcrecompat \
62              pcrepattern pcresyntax pcrepartial pcreprecompile \              pcrepattern pcresyntax pcreunicode pcrejit pcrepartial \
63              pcreperform pcreposix pcrecpp pcresample pcrestack ; do              pcreprecompile pcreperform pcreposix pcrecpp pcresample \
64                pcrelimits pcrestack ; do
65    echo "  Processing $file.3"    echo "  Processing $file.3"
66    nroff -c -man $file.3 >$file.rawtxt    nroff -c -man $file.3 >$file.rawtxt
67    ../CleanTxt <$file.rawtxt >>pcre.txt    perl ../CleanTxt <$file.rawtxt >>pcre.txt
68    /bin/rm $file.rawtxt    /bin/rm $file.rawtxt
69    echo "------------------------------------------------------------------------------" >>pcre.txt    echo "------------------------------------------------------------------------------" >>pcre.txt
70    if [ "$file" != "pcresample" ] ; then    if [ "$file" != "pcresample" ] ; then
# Line 76  done Line 77  done
77  for file in pcretest pcregrep pcre-config ; do  for file in pcretest pcregrep pcre-config ; do
78    echo Making $file.txt    echo Making $file.txt
79    nroff -c -man $file.1 >$file.rawtxt    nroff -c -man $file.1 >$file.rawtxt
80    ../CleanTxt <$file.rawtxt >$file.txt    perl ../CleanTxt <$file.rawtxt >$file.txt
81    /bin/rm $file.rawtxt    /bin/rm $file.rawtxt
82  done  done
83    
# Line 103  perl <<"END" >pcredemo.3 Line 104  perl <<"END" >pcredemo.3
104              ".  hy \\\\n(HY\n" .              ".  hy \\\\n(HY\n" .
105              "..\n" .              "..\n" .
106              ".\n" .              ".\n" .
107              ".EX\n" ;              ".EX\n" ;
108    while (<IN>)    while (<IN>)
109      {      {
110      s/\\/\\e/g;      s/\\/\\e/g;
# Line 111  perl <<"END" >pcredemo.3 Line 112  perl <<"END" >pcredemo.3
112      }      }
113    print OUT ".EE\n";    print OUT ".EE\n";
114    close(IN);    close(IN);
115    close(OUT);    close(OUT);
116  END  END
117  if [ $? != 0 ] ; then exit 1; fi  if [ $? != 0 ] ; then exit 1; fi
118    
# Line 125  cp index.html.src html/index.html Line 126  cp index.html.src html/index.html
126  for file in *.1 ; do  for file in *.1 ; do
127    base=`basename $file .1`    base=`basename $file .1`
128    echo "  Making $base.html"    echo "  Making $base.html"
129    ../132html -toc $base <$file >html/$base.html    perl ../132html -toc $base <$file >html/$base.html
130  done  done
131    
132  # Exclude table of contents for function summaries. It seems that expr  # Exclude table of contents for function summaries. It seems that expr
# Line 136  for file in *.3 ; do Line 137  for file in *.3 ; do
137    base=`basename $file .3`    base=`basename $file .3`
138    toc=-toc    toc=-toc
139    if [ `expr $base : '.*_'` -ne 0 ] ; then toc="" ; fi    if [ `expr $base : '.*_'` -ne 0 ] ; then toc="" ; fi
140    if [ "$base" = "pcresample" ] || \    if [ "$base" = "pcresample" ]  || \
141       [ "$base" = "pcrestack" ]  || \       [ "$base" = "pcrestack" ]   || \
142       [ "$base" = "pcrecompat" ] || \       [ "$base" = "pcrecompat" ]  || \
143       [ "$base" = "pcreperform" ] ; then       [ "$base" = "pcrelimits" ]  || \
144         [ "$base" = "pcreperform" ] || \
145         [ "$base" = "pcreunicode" ] ; then
146      toc=""      toc=""
147    fi    fi
148    echo "  Making $base.html"    echo "  Making $base.html"
149    ../132html $toc $base <$file >html/$base.html    perl ../132html $toc $base <$file >html/$base.html
150    if [ $? != 0 ] ; then exit 1; fi    if [ $? != 0 ] ; then exit 1; fi
151  done  done
152    
# Line 154  echo Documentation done Line 157  echo Documentation done
157  if [ "$1" = "doc" ] ; then exit; fi  if [ "$1" = "doc" ] ; then exit; fi
158    
159  # These files are detrailed; do not detrail the test data because there may be  # These files are detrailed; do not detrail the test data because there may be
160  # significant trailing spaces. The configure files are also omitted from the  # significant trailing spaces. Do not detrail RunTest.bat, because it has CRLF
161  # detrailing.  # line endings and the detrail script removes all trailing white space. The
162    # configure files are also omitted from the detrailing.
163    
164  files="\  files="\
165    Makefile.am \    Makefile.am \
# Line 175  files="\ Line 179  files="\
179    CMakeLists.txt \    CMakeLists.txt \
180    RunGrepTest \    RunGrepTest \
181    RunTest \    RunTest \
   RunTest.bat \  
182    pcre-config.in \    pcre-config.in \
183    libpcre.pc.in \    libpcre.pc.in \
184    libpcreposix.pc.in \    libpcreposix.pc.in \
# Line 199  files="\ Line 202  files="\
202    pcre_get.c \    pcre_get.c \
203    pcre_globals.c \    pcre_globals.c \
204    pcre_info.c \    pcre_info.c \
205      pcre_jit_compile.c \
206      pcre_jit_test.c \
207    pcre_maketables.c \    pcre_maketables.c \
208    pcre_newline.c \    pcre_newline.c \
209    pcre_ord2utf8.c \    pcre_ord2utf8.c \
# Line 230  files="\ Line 235  files="\
235    libpcreposix.def"    libpcreposix.def"
236    
237  echo Detrailing  echo Detrailing
238  ./Detrail $files doc/p* doc/html/*  perl ./Detrail $files doc/p* doc/html/*
239    
240  echo Doing basic configure to get default pcre.h and config.h  echo Doing basic configure to get default pcre.h and config.h
241  # This is in case the caller has set aliases (as I do - PH)  # This is in case the caller has set aliases (as I do - PH)

Legend:
Removed from v.583  
changed lines
  Added in v.783

  ViewVC Help
Powered by ViewVC 1.1.5