Annotation of parser3/buildall-without-xml, revision 1.12

1.2       paf         1: #!/bin/sh
                      2: 
1.12    ! misha       3: # $Id: buildall-without-xml,v 1.11 2007/08/27 09:46:25 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-without-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.5       misha      20:   libgc="gc6.8"
                     21:   if test ! -f "$libgc.tar.gz"; then
                     22:     echo "Downloading libgc [1 lib of 1]..."
                     23:     wget -c http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$libgc.tar.gz
                     24:   fi
                     25:   echo "Unpacking gc..."
1.7       misha      26:   rm -rf $libgc
1.5       misha      27:   gunzip -c $libgc.tar.gz | tar vxf - >/dev/null
                     28:   cd $libgc
1.2       paf        29:   echo "Configuring libgc..."
1.3       paf        30:   CPPFLAGS="-DUSE_LIBC_PRIVATES -DUSE_MMAP -DUSE_MUNMAP" \
1.8       misha      31:        ./configure --prefix=$project_directory/gc \
                     32:                --disable-threads \
                     33:                --disable-shared \
                     34:                --silent
1.2       paf        35:   echo "Building libgc..."
                     36:   make
                     37:   make install
1.10      misha      38:   cd ..
1.9       misha      39:   rm -rf $libgc
1.2       paf        40: fi
                     41: 
1.7       misha      42: 
1.2       paf        43: cd $parser3_directory
                     44: 
                     45: if test ! -f "Makefile"; then
1.12    ! misha      46:   options=""
        !            47:   options="$options --with-static-gc=$project_directory/gc/lib"
        !            48: #  options="$options --disable-safe-mode"
        !            49: #  options="$options --with-dynamic-stdcpp"
        !            50:   options="$options --silent"
        !            51: 
1.2       paf        52:   echo "Configuring parser3..."
1.12    ! misha      53:   ./configure --prefix=$install_directory "--with-sendmail=$sendmail_command" $options
1.2       paf        54: fi
                     55: echo "Building parser3..."
                     56: make install
1.11      misha      57: 
                     58: # remove debug info
                     59: # strip ${install_directory}/bin/parser3
                     60: 
1.2       paf        61: echo "DONE"
                     62: 
                     63: echo
                     64: echo
                     65: echo "********************************************************************************************************"
                     66: echo "Now you can copy $install_directory with subdirectories"
                     67: echo "  -Parser3 WITHOUT XML support-"
                     68: echo "to your cgi-bin directory"
                     69: echo "Read more about installing Parser here:"
                     70: echo "  http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
                     71: echo "  http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
                     72: echo "********************************************************************************************************"

E-mail: