Diff for /parser3/Attic/buildall-without-xml between versions 1.21 and 1.31

version 1.21, 2009/12/03 23:08:37 version 1.31, 2012/06/12 22:04:26
Line 4 Line 4
   
 install_directory=$HOME/parser3install  install_directory=$HOME/parser3install
 sendmail_command="/usr/sbin/sendmail -i -t -f postmaster"  sendmail_command="/usr/sbin/sendmail -i -t -f postmaster"
   download="wget -c --passive-ftp"
   cflags=""
   cflags="CFLAGS=-fPIC CXXFLAGS=-fPIC" #required for apache module on x64
   
 echo "buildall-without-xml"  echo "buildall-without-xml"
 echo "Script author: Alexander Petrosian <paf@design.ru> (http://paf.design.ru)"  echo "Script author: Alexander Petrosian <paf@design.ru> (http://paf.design.ru)"
Line 21  if test ! -f "$project_directory/gc/lib/ Line 24  if test ! -f "$project_directory/gc/lib/
   libgc="gc-7.1"    libgc="gc-7.1"
   if test ! -f "$libgc.tar.gz"; then    if test ! -f "$libgc.tar.gz"; then
     echo "Downloading libgc [1 lib of 2]..."      echo "Downloading libgc [1 lib of 2]..."
     wget -c http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$libgc.tar.gz      $download http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$libgc.tar.gz
   fi    fi
   echo "Unpacking gc..."    echo "Unpacking gc..."
   rm -rf $libgc    rm -rf $libgc
Line 32  if test ! -f "$project_directory/gc/lib/ Line 35  if test ! -f "$project_directory/gc/lib/
         ./configure --prefix=$project_directory/gc \          ./configure --prefix=$project_directory/gc \
                 --disable-threads \                  --disable-threads \
                 --disable-shared \                  --disable-shared \
                 --silent                  --silent $cflags
   echo "Building libgc..."    echo "Building libgc..."
   make    make
   make install    make install
Line 40  if test ! -f "$project_directory/gc/lib/ Line 43  if test ! -f "$project_directory/gc/lib/
   rm -rf $libgc    rm -rf $libgc
 fi  fi
   
   
 if test ! -f "$project_directory/pcre/lib/libpcre.a"; then  if test ! -f "$project_directory/pcre/lib/libpcre.a"; then
   cd $project_directory/src    cd $project_directory/src
   libpcre="pcre-7.9"    libpcre="pcre-8.30"
   if test ! -f "$libpcre.tar.gz"; then    if test ! -f "$libpcre.tar.gz"; then
     echo "Downloading pcre [2 lib of 2]..."      echo "Downloading pcre [2 lib of 2]..."
     wget -c --passive-ftp ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$libpcre.tar.gz      $download ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$libpcre.tar.gz
   fi    fi
   echo "Unpacking pcre..."    echo "Unpacking pcre..."
   rm -rf $libpcre    rm -rf $libpcre
Line 55  if test ! -f "$project_directory/pcre/li Line 57  if test ! -f "$project_directory/pcre/li
   current_dir=`pwd`    current_dir=`pwd`
   echo "Configuring pcre..."    echo "Configuring pcre..."
   ./configure --prefix="$project_directory/pcre" \    ./configure --prefix="$project_directory/pcre" \
       --with-match-limit=10000 \
       --with-match-limit-recursion=10000 \
     --enable-utf8 \      --enable-utf8 \
     --enable-unicode-properties \      --enable-unicode-properties \
     --disable-shared \      --disable-shared \
     --disable-cpp \      --disable-cpp \
     --disable-pcregrep-libz \      --disable-pcregrep-libz \
     --disable-pcregrep-libz2 \      --disable-pcregrep-libbz2 \
     --silent      --silent $cflags
   echo "Building pcre..."    echo "Building pcre..."
   make    make
   make install    make install
   echo "Copying required files (Parser3 uses some PCRE internals)..."  
   cp pcre_internal.h ucp.h $project_directory/pcre/include  
   cd ..    cd ..
   rm -rf $libpcre    rm -rf $libpcre
 fi  fi
   
   
 cd $parser3_directory  cd $parser3_directory
   
 if test ! -f "Makefile"; then  if test ! -f "Makefile"; then
   options=""    options="$@"
   options="$options --with-static-gc=$project_directory/gc/lib"    options="$options --with-static-gc=$project_directory/gc/lib"
   options="$options --with-static-pcre=$project_directory/pcre"    options="$options --with-static-pcre=$project_directory/pcre"
 #  options="$options --disable-safe-mode"  #  options="$options --disable-safe-mode"
 #  options="$options --with-dynamic-stdcpp"  
 #  options="$options --disable-stringstream"  #  options="$options --disable-stringstream"
   options="$options --silent"    options="$options --silent $cflags"
   
   echo "Configuring parser3..."    echo "Configuring parser3..."
   ./configure --prefix=$install_directory "--with-sendmail=$sendmail_command" $options    ./configure --prefix=$install_directory "--with-sendmail=$sendmail_command" $options
 fi  fi
   
 echo "Building parser3..."  echo "Building parser3..."
 make install  make install
   if test $? -ne 0; then exit 1; fi
   
 # remove debug info  # remove debug info
 # strip ${install_directory}/bin/parser3  # strip ${install_directory}/bin/parser3

Removed from v.1.21  
changed lines
  Added in v.1.31


E-mail: