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

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

E-mail: