install option

SVN revision: 53430
This commit is contained in:
Andreas Volz 2010-10-14 21:18:16 +00:00
parent 64df6a42e0
commit c4862ab705
2 changed files with 7 additions and 1 deletions

View File

@ -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
}

View File

@ -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