--- embedaddon/pcre/PrepareRelease 2012/10/09 09:19:17 1.1.1.3 +++ embedaddon/pcre/PrepareRelease 2013/07/22 08:25:56 1.1.1.4 @@ -25,7 +25,13 @@ # when the HTML documentation is built. It works like this so that # doc/html can be deleted and re-created from scratch. +# README & NON-AUTOTOOLS-BUILD +# These files are copied into the doc/html directory, with .txt +# extensions so that they can by hyperlinked from the HTML +# documentation, because some people just go to the HTML without +# looking for text files. + # First, sort out the documentation. Remove pcredemo.3 first because it won't # pass the markup check (it is created below, using markup that none of the # other pages use). @@ -58,8 +64,8 @@ pcretest commands. End echo "Making pcre.txt" -for file in pcre pcre16 pcrebuild pcrematching pcreapi pcrecallout pcrecompat \ - pcrepattern pcresyntax pcreunicode pcrejit pcrepartial \ +for file in pcre pcre16 pcre32 pcrebuild pcrematching pcreapi pcrecallout \ + pcrecompat pcrepattern pcresyntax pcreunicode pcrejit pcrepartial \ pcreprecompile pcreperform pcreposix pcrecpp pcresample \ pcrelimits pcrestack ; do echo " Processing $file.3" @@ -122,6 +128,8 @@ if [ $? != 0 ] ; then exit 1; fi echo "Making HTML documentation" /bin/rm html/* cp index.html.src html/index.html +cp ../README html/README.txt +cp ../NON-AUTOTOOLS-BUILD html/NON-AUTOTOOLS-BUILD.txt for file in *.1 ; do base=`basename $file .1` @@ -160,7 +168,7 @@ if [ "$1" = "doc" ] ; then exit; fi # significant trailing spaces. Do not detrail RunTest.bat, because it has CRLF # line endings and the detrail script removes all trailing white space. The # configure files are also omitted from the detrailing. We don't bother with -# those pcre16_xx files that just define COMPILE_PCRE16 and then #include the +# those pcre[16|32]_xx files that just define COMPILE_PCRE16 and then #include the # common file, because they aren't going to change. files="\ @@ -185,6 +193,7 @@ files="\ pcre-config.in \ libpcre.pc.in \ libpcre16.pc.in \ + libpcre32.pc.in \ libpcreposix.pc.in \ libpcrecpp.pc.in \ config.h.in \ @@ -196,7 +205,7 @@ files="\ pcreposix.c \ pcreposix.h \ pcre.h.in \ - pcre_internal.h + pcre_internal.h \ pcre_byte_order.c \ pcre_compile.c \ pcre_config.c \ @@ -211,17 +220,19 @@ files="\ pcre_newline.c \ pcre_ord2utf8.c \ pcre16_ord2utf16.c \ + pcre32_ord2utf32.c \ pcre_printint.c \ pcre_refcount.c \ pcre_string_utils.c \ pcre_study.c \ pcre_tables.c \ - pcre_ucp_searchfuncs.c \ pcre_valid_utf8.c \ pcre_version.c \ pcre_xclass.c \ pcre16_utf16_utils.c \ + pcre32_utf32_utils.c \ pcre16_valid_utf16.c \ + pcre32_valid_utf32.c \ pcre_scanner.cc \ pcre_scanner.h \ pcre_scanner_unittest.cc \ @@ -234,8 +245,6 @@ files="\ pcre_stringpiece_unittest.cc \ perltest.pl \ ucp.h \ - ucpinternal.h \ - ucptable.h \ makevp.bat \ pcre.def \ libpcre.def \ @@ -243,34 +252,6 @@ files="\ echo Detrailing perl ./Detrail $files doc/p* doc/html/* - -echo Doing basic configure to get default pcre.h and config.h -# This is in case the caller has set aliases (as I do - PH) -unset cp ls mv rm -./configure >/dev/null - -echo Converting pcre.h and config.h to generic forms -cp -f pcre.h pcre.h.generic - -perl <<'END' - open(IN, "config.h.generic") || die "Can't open config.h.generic: $!\n"; - while () - { - if (/^#define\s(?!PACKAGE)(\w+)/) - { - print OUT "#ifndef $1\n"; - print OUT; - print OUT "#endif\n"; - } - else - { - print OUT; - } - } - close IN; - close OUT; -END echo Done