Annotation of parser3/buildall-without-xml, revision 1.4
1.2 paf 1: #!/bin/sh
2:
1.4 ! misha 3: # $Id: buildall-without-xml,v 1.3 2006/01/19 10:57:14 paf 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
20: echo "Downloading libgc [1 lib of 1]..."
1.4 ! misha 21: wget -c http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc6.8.tar.gz
1.2 paf 22: echo "Unpacking..."
1.4 ! misha 23: gunzip -c gc6.8.tar.gz | tar vxf - >/dev/null
! 24: cd gc6.8
1.2 paf 25: echo "Configuring libgc..."
1.3 paf 26: CPPFLAGS="-DUSE_LIBC_PRIVATES -DUSE_MMAP -DUSE_MUNMAP" \
1.2 paf 27: ./configure --prefix=$project_directory/gc --disable-threads --disable-shared --silent
28: echo "Building libgc..."
29: make
30: make install
31: fi
32:
33: cd $parser3_directory
34:
35: if test ! -f "Makefile"; then
36: echo "Configuring parser3..."
37: ./configure --prefix=$install_directory \
38: "--with-sendmail=$sendmail_command" \
39: --with-static-gc=$project_directory/gc/lib \
40: --silent
41: fi
42: echo "Building parser3..."
43: make install
44: echo "DONE"
45:
46: echo
47: echo
48: echo "********************************************************************************************************"
49: echo "Now you can copy $install_directory with subdirectories"
50: echo " -Parser3 WITHOUT XML support-"
51: echo "to your cgi-bin directory"
52: echo "Read more about installing Parser here:"
53: echo " http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
54: echo " http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
55: echo "********************************************************************************************************"
E-mail: