Annotation of parser3/buildall-with-xml, revision 1.8

1.2       paf         1: #!/bin/sh
                      2: 
1.8     ! misha       3: # $Id: buildall-with-xml,v 1.7 2007/02/19 11:47:55 misha Exp $
1.2       paf         4: 
                      5: install_directory=$HOME/parser3install
                      6: sendmail_command="/usr/sbin/sendmail -i -t -f postmaster"
                      7: 
                      8: echo "buildall-with-xml"
                      9: echo "Script author: Alexander Petrosian <paf@design.ru> (http://paf.design.ru)"
                     10: echo
                     11: echo "Building..."
                     12: 
                     13: parser3_directory=`pwd`
                     14: cd ..
                     15: project_directory=`pwd`
                     16: mkdir src >/dev/null 2>&1
                     17: 
                     18: if test ! -f "$project_directory/gc/lib/libgc.a"; then
                     19:   cd $project_directory/src
1.7       misha      20:   libgc="gc6.8"
                     21:   if test ! -f "$libgc.tar.gz"; then
                     22:     echo "Downloading libgc [1 lib of 3]..."
                     23:     wget -c http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$libgc.tar.gz
                     24:   fi
                     25:   echo "Unpacking gc..."
                     26:   gunzip -c $libgc.tar.gz | tar vxf - >/dev/null
                     27:   cd $libgc
1.2       paf        28:   echo "Configuring libgc..."
1.3       paf        29:   CPPFLAGS="-DUSE_LIBC_PRIVATES -DUSE_MMAP -DUSE_MUNMAP" \
1.2       paf        30:   ./configure --prefix=$project_directory/gc --disable-threads --disable-shared --silent
                     31:   echo "Building libgc..."
                     32:   make
                     33:   make install
                     34: fi
                     35: 
                     36: 
                     37: if test ! -f "$project_directory/gnome/lib/libxml2.a"; then
                     38:   cd $project_directory/src
1.7       misha      39:   libxml2="libxml2-2.6.27"
                     40:   if test ! -f "$libxml2.tar.gz"; then
                     41:     echo "Downloading libxml [2 lib of 3]..."
                     42:     wget -c --passive-ftp ftp://xmlsoft.org/libxml2/$libxml2.tar.gz
                     43:   fi
                     44:   echo "Unpacking libxml2... (be patient)"
1.8     ! misha      45:   rm -rf $libxml2
1.7       misha      46:   gunzip -c $libxml2.tar.gz | tar vxf - >/dev/null
                     47:   cd $libxml2
1.8     ! misha      48:   #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?], xptr[xinclude], http, pattern -- needed!
1.2       paf        49:   echo "Configuring libxml..."
                     50:   ./configure --prefix=$project_directory/gnome \
                     51:     --without-iconv --without-threads --without-debug \
                     52:     --without-iso8859x --without-legacy \
1.8     ! misha      53:     --without-push --without-python \
1.2       paf        54:     --without-reader --without-writer --without-readline --without-regexps \
                     55:     --without-schemas --without-schematron \
                     56:     --without-modules \
                     57:     --without-zlib \
                     58:     --disable-shared --silent
                     59:   echo "int main(){return 0;}">testapi.c
                     60:   echo "int main(){return 0;}">runtest.c
                     61:   echo "Building libxml..."
                     62:   make
                     63:   make install
                     64: fi
                     65: 
                     66: if test ! -f "$project_directory/gnome/lib/libxslt.a"; then
                     67:   cd $project_directory/src
1.7       misha      68:   libxslt="libxslt-1.1.20"
                     69:   if test ! -f "$libxslt.tar.gz"; then
                     70:     echo "Downloading libxslt [3 lib of 3]..."
                     71:     wget -c --passive-ftp ftp://xmlsoft.org/libxslt/$libxslt.tar.gz
                     72:   fi
                     73:   echo "Unpacking libxslt... (be patient)"
1.8     ! misha      74:   rm -rf $libxslt
1.7       misha      75:   gunzip -c $libxslt.tar.gz | tar vxf - >/dev/null
                     76:   cd $libxslt
1.2       paf        77:   echo "Configuring libxslt..."
                     78:   ./configure --prefix=$project_directory/gnome \
                     79:      --with-libxml-prefix=$project_directory/gnome \
                     80:      --without-debug --without-debugger --without-crypto --without-plugins --disable-shared  --silent
                     81:   echo "Building libxslt..."
                     82:   make
                     83:   make install
                     84: fi
                     85: 
                     86: cd $parser3_directory
                     87: 
                     88: if test ! -f "Makefile"; then
                     89:   echo "Configuring parser3..."
                     90:   ./configure --prefix=$install_directory \
                     91:      "--with-sendmail=$sendmail_command" \
                     92:      --with-static-gc=$project_directory/gc/lib \
                     93:      --with-static-xml=$project_directory/gnome \
                     94:      --silent
                     95: fi
                     96: echo "Building parser3..."
                     97: make install
                     98: echo "DONE"
                     99: 
                    100: echo
                    101: echo
                    102: echo "********************************************************************************************************"
                    103: echo "Now you can copy $install_directory with subdirectories"
                    104: echo "  -Parser3 with XML support-"
                    105: echo "to your cgi-bin directory"
                    106: echo "Read more about installing Parser here:"
                    107: echo "  http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
                    108: echo "  http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
                    109: echo "********************************************************************************************************"

E-mail: