Annotation of parser3/buildall-with-xml, revision 1.10
1.2 paf 1: #!/bin/sh
2:
1.10 ! misha 3: # $Id: buildall-with-xml,v 1.9 2007/03/13 14:58:17 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..."
1.9 misha 26: rm -rf $libgc
1.7 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.2 paf 31: ./configure --prefix=$project_directory/gc --disable-threads --disable-shared --silent
32: echo "Building libgc..."
33: make
34: make install
35: fi
36:
37:
38: if test ! -f "$project_directory/gnome/lib/libxml2.a"; then
39: cd $project_directory/src
1.7 misha 40: libxml2="libxml2-2.6.27"
41: if test ! -f "$libxml2.tar.gz"; then
42: echo "Downloading libxml [2 lib of 3]..."
43: wget -c --passive-ftp ftp://xmlsoft.org/libxml2/$libxml2.tar.gz
44: fi
45: echo "Unpacking libxml2... (be patient)"
1.8 misha 46: rm -rf $libxml2
1.7 misha 47: gunzip -c $libxml2.tar.gz | tar vxf - >/dev/null
48: cd $libxml2
1.8 misha 49: #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?], xptr[xinclude], http, pattern -- needed!
1.2 paf 50: echo "Configuring libxml..."
51: ./configure --prefix=$project_directory/gnome \
52: --without-iconv --without-threads --without-debug \
53: --without-iso8859x --without-legacy \
1.8 misha 54: --without-push --without-python \
1.2 paf 55: --without-reader --without-writer --without-readline --without-regexps \
56: --without-schemas --without-schematron \
1.9 misha 57: --without-modules --without-ftp --without-docbook \
1.2 paf 58: --without-zlib \
59: --disable-shared --silent
60: echo "int main(){return 0;}">testapi.c
61: echo "int main(){return 0;}">runtest.c
62: echo "Building libxml..."
63: make
64: make install
65: fi
66:
67: if test ! -f "$project_directory/gnome/lib/libxslt.a"; then
68: cd $project_directory/src
1.7 misha 69: libxslt="libxslt-1.1.20"
70: if test ! -f "$libxslt.tar.gz"; then
71: echo "Downloading libxslt [3 lib of 3]..."
72: wget -c --passive-ftp ftp://xmlsoft.org/libxslt/$libxslt.tar.gz
73: fi
74: echo "Unpacking libxslt... (be patient)"
1.8 misha 75: rm -rf $libxslt
1.7 misha 76: gunzip -c $libxslt.tar.gz | tar vxf - >/dev/null
77: cd $libxslt
1.2 paf 78: echo "Configuring libxslt..."
79: ./configure --prefix=$project_directory/gnome \
80: --with-libxml-prefix=$project_directory/gnome \
81: --without-debug --without-debugger --without-crypto --without-plugins --disable-shared --silent
82: echo "Building libxslt..."
83: make
84: make install
85: fi
86:
87: cd $parser3_directory
88:
89: if test ! -f "Makefile"; then
90: echo "Configuring parser3..."
91: ./configure --prefix=$install_directory \
92: "--with-sendmail=$sendmail_command" \
93: --with-static-gc=$project_directory/gc/lib \
94: --with-static-xml=$project_directory/gnome \
1.10 ! misha 95: # --disable-safe-mode \
1.2 paf 96: --silent
97: fi
98: echo "Building parser3..."
99: make install
100: echo "DONE"
101:
102: echo
103: echo
104: echo "********************************************************************************************************"
105: echo "Now you can copy $install_directory with subdirectories"
106: echo " -Parser3 with XML support-"
107: echo "to your cgi-bin directory"
108: echo "Read more about installing Parser here:"
109: echo " http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
110: echo " http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
111: echo "********************************************************************************************************"
E-mail: