--- parser3/buildall 2012/07/20 21:48:48 1.5 +++ parser3/buildall 2012/10/22 20:54:53 1.7 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: buildall,v 1.5 2012/07/20 21:48:48 moko Exp $ +# $Id: buildall,v 1.7 2012/10/22 20:54:53 moko Exp $ install_directory=$HOME/parser3install sendmail_command="/usr/sbin/sendmail -i -t -f postmaster" @@ -11,33 +11,37 @@ project_dir=`pwd` build_xml="yes" build_gmime="" build_apache="" +build_stripped="" options="--with-included-ltdl" options="$options --with-gc=$project_dir/gc/lib" options="$options --with-pcre=$project_dir/pcre" -#options="$options --disable-safe-mode" #options="$options --disable-stringstream" -echo -n "Building statically linked parser3" -for PARAM; do +echo "Building statically linked parser3\c" +for PARAM in "$@"; do case "$PARAM" in "--without-xml") - echo -n ", without xml" + echo ", without xml\c" build_xml="" ;; "--with-apache") - echo -n ", with apache module" + echo ", with apache module\c" options="$options --with-apache" build_apache="yes" ;; "--with-mailreceive") - echo -n ", with mail receiving" + echo ", with mail receiving\c" options="$options --with-mailreceive=$project_dir/gnome" build_gmime="yes" ;; + "--strip") + echo ", without debug information\c" + build_stripped="yes" + ;; "--help") echo - echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [other configure options ...]" + echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [--strip] [--disable-safe-mode] [other configure options ...]" exit 1 ;; *) @@ -250,8 +254,9 @@ echo "Building parser3..." make install if test $? -ne 0; then exit 1; fi -#remove debug info -#strip ${install_directory}/bin/parser3 +if test "$build_stripped" = "yes"; then + strip ${install_directory}/bin/parser3 +fi echo "DONE" echo