Annotation of parser3/buildall-without-xml, revision 1.5
1.2 paf 1: #!/bin/sh
2:
1.5 ! misha 3: # $Id: buildall-without-xml,v 1.4 2007/02/17 11:14:57 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..."
! 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: cd $parser3_directory
37:
38: if test ! -f "Makefile"; then
39: echo "Configuring parser3..."
40: ./configure --prefix=$install_directory \
41: "--with-sendmail=$sendmail_command" \
42: --with-static-gc=$project_directory/gc/lib \
43: --silent
44: fi
45: echo "Building parser3..."
46: make install
47: echo "DONE"
48:
49: echo
50: echo
51: echo "********************************************************************************************************"
52: echo "Now you can copy $install_directory with subdirectories"
53: echo " -Parser3 WITHOUT XML support-"
54: echo "to your cgi-bin directory"
55: echo "Read more about installing Parser here:"
56: echo " http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
57: echo " http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
58: echo "********************************************************************************************************"
E-mail: