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

Diff of /code/trunk/PrepareRelease

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

revision 127 by ph10, Mon Mar 19 11:44:45 2007 UTC revision 429 by ph10, Tue Sep 1 16:10:16 2009 UTC
# Line 8  Line 8 
8  # following files:  # following files:
9    
10  # 132html     A Perl script that converts a .1 or .3 man page into HTML. It  # 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  #             "knows" the relevant troff constructs that are used in the PCRE
12  #             constructs that are used in the PCRE man pages.  #             man pages.
13    
14  # CleanTxt    A Perl script that cleans up the output of "nroff -man" by  # CleanTxt    A Perl script that cleans up the output of "nroff -man" by
15  #             removing backspaces and other redundant text so as to produce  #             removing backspaces and other redundant text so as to produce
# Line 17  Line 17 
17    
18  # Detrail     A Perl script that removes trailing spaces from files.  # Detrail     A Perl script that removes trailing spaces from files.
19    
20  # doc/index.html.src  # doc/index.html.src
21  #             A file that is copied as index.html into the doc/html directory  #             A file that is copied as index.html into the doc/html directory
22  #             when the HTML documentation is built. It works like this so that  #             when the HTML documentation is built. It works like this so that
23  #             doc/html can be deleted and re-created from scratch.  #             doc/html can be deleted and re-created from scratch.
# Line 37  cat <<End >pcre.txt Line 37  cat <<End >pcre.txt
37  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
38  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
39  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
40  synopses of each function in the library have not been included. There are  synopses of each function in the library have not been included. Neither has
41  separate text files for the pcregrep and pcretest commands.  the pcredemo program. There are separate text files for the pcregrep and
42    pcretest commands.
43  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
44    
45    
# Line 46  End Line 47  End
47    
48  echo "Making pcre.txt"  echo "Making pcre.txt"
49  for file in pcre pcrebuild pcrematching pcreapi pcrecallout pcrecompat \  for file in pcre pcrebuild pcrematching pcreapi pcrecallout pcrecompat \
50              pcrepattern pcrepartial pcreprecompile \              pcrepattern pcresyntax pcrepartial pcreprecompile \
51              pcreperform pcreposix pcrecpp pcresample pcrestack ; do              pcreperform pcreposix pcrecpp pcresample pcrestack ; do
52    echo "  Processing $file.3"    echo "  Processing $file.3"
53    nroff -c -man $file.3 >$file.rawtxt    nroff -c -man $file.3 >$file.rawtxt
# Line 59  for file in pcre pcrebuild pcrematching Line 60  for file in pcre pcrebuild pcrematching
60    fi    fi
61  done  done
62    
63  # The two commands  # The three commands
64  for file in pcretest pcregrep ; do  for file in pcretest pcregrep pcre-config ; do
65    echo Making $file.txt    echo Making $file.txt
66    nroff -c -man $file.1 >$file.rawtxt    nroff -c -man $file.1 >$file.rawtxt
67    ../CleanTxt <$file.rawtxt >$file.txt    ../CleanTxt <$file.rawtxt >$file.txt
# Line 68  for file in pcretest pcregrep ; do Line 69  for file in pcretest pcregrep ; do
69  done  done
70    
71    
72    # Make pcredemo.3 from the pcredemo.c source file
73    
74    echo "Making pcredemo.3"
75    perl <<"END" >pcredemo.3
76      open(IN, "../pcredemo.c") || die "Failed to open pcredemo.c\n";
77      open(OUT, ">pcredemo.3") || die "Failed to open pcredemo.3\n";
78      print OUT ".\\\" Start example.\n" .
79                ".de EX\n" .
80                ".  nr mE \\\\n(.f\n" .
81                ".  nf\n" .
82                ".  nh\n" .
83                ".  ft CW\n" .
84                "..\n" .
85                ".\n" .
86                ".\n" .
87                ".\\\" End example.\n" .
88                ".de EE\n" .
89                ".  ft \\\\n(mE\n" .
90                ".  fi\n" .
91                ".  hy \\\\n(HY\n" .
92                "..\n" .
93                ".\n" .
94                ".EX\n" ;
95      while (<IN>)
96        {
97        s/\\/\\e/g;
98        print OUT;
99        }
100      print OUT ".EE\n";
101      close(IN);
102      close(OUT);
103    END
104    if [ $? != 0 ] ; then exit 1; fi
105    
106    
107  # Make HTML form of the documentation.  # Make HTML form of the documentation.
108    
109  echo "Making HTML documentation"  echo "Making HTML documentation"
# Line 123  files="\ Line 159  files="\
159    Detrail \    Detrail \
160    ChangeLog \    ChangeLog \
161    CMakeLists.txt \    CMakeLists.txt \
162    RunGrepTest.in \    RunGrepTest \
163    RunTest.in \    RunTest \
164    RunTest.bat \    RunTest.bat \
165    pcre-config.in \    pcre-config.in \
166    libpcre.pc.in \    libpcre.pc.in \
167      libpcreposix.pc.in \
168    libpcrecpp.pc.in \    libpcrecpp.pc.in \
   config.h \  
169    config.h.in \    config.h.in \
170    pcre_printint.src \    pcre_printint.src \
171      pcre_chartables.c.dist \
172    pcredemo.c \    pcredemo.c \
173    pcregrep.c \    pcregrep.c \
174    pcretest.c \    pcretest.c \
175    dftables.c \    dftables.c \
176    pcreposix.c \    pcreposix.c \
177    pcreposix.h \    pcreposix.h \
   pcre.h \  
178    pcre.h.in \    pcre.h.in \
179    pcre_internal.h    pcre_internal.h
180    pcre_compile.c \    pcre_compile.c \
# Line 182  files="\ Line 218  files="\
218  echo Detrailing  echo Detrailing
219  ./Detrail $files doc/p* doc/html/*  ./Detrail $files doc/p* doc/html/*
220    
221    echo Doing basic configure to get default pcre.h and config.h
222    # This is in case the caller has set aliases (as I do - PH)
223    unset cp ls mv rm
224    ./configure >/dev/null
225    
226  echo Converting pcre.h and config.h to generic forms  echo Converting pcre.h and config.h to generic forms
227  cp -f pcre.h pcre.h.generic  cp -f pcre.h pcre.h.generic
228    
# Line 205  perl <<'END' Line 246  perl <<'END'
246    close OUT;    close OUT;
247  END  END
248    
249    echo Done
250    
251  #End  #End

Legend:
Removed from v.127  
changed lines
  Added in v.429

  ViewVC Help
Powered by ViewVC 1.1.5