From c4862ab705959065cee019677fbf05b52bbef6ba Mon Sep 17 00:00:00 2001 From: Andreas Volz Date: Thu, 14 Oct 2010 21:18:16 +0000 Subject: [PATCH] install option SVN revision: 53430 --- compile.functions | 5 ++++- compile.sh | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/compile.functions b/compile.functions index 16fecdc..d3c132f 100644 --- a/compile.functions +++ b/compile.functions @@ -40,7 +40,7 @@ do_configure () if [ $val_debug = true ]; then CXXFLAGS="-O0 -ggdb" CFLAGS="-O0 -ggdb" ./configure &> $LOGFILE else - ./configure &> $LOGFILE + ./configure $CONFIG_ARGS &> $LOGFILE fi if [ $? != 0 ]; then @@ -81,6 +81,8 @@ print_help() { cat << EOF +Set "CONFIG_ARGS" environment variable to define arguments to configure script + Usage: $0 [OPTIONS]... --help show this help @@ -90,6 +92,7 @@ $0 [OPTIONS]... --skip-error skip errors while generating/building otherwise exit --clean clean the sources (without generating) --no-make don't make the sources + --install intall the build files EOF } diff --git a/compile.sh b/compile.sh index e878838..f566cf5 100755 --- a/compile.sh +++ b/compile.sh @@ -19,6 +19,7 @@ val_skip_error=false val_clean=false val_make=true val_debug=true +val_install=false ## include all needed functions source compile.functions @@ -33,6 +34,7 @@ for i --skip-error) val_skip_error=true ;; --clean) val_clean=true ;; --no-make) val_make=false ;; + --install) val_install=true ;; *) echo "$0: wrong parameter" @@ -53,6 +55,7 @@ do $val_clean && do_make $module clean $val_make && do_make $module all + $val_install && do_make $module install done