local version=0.5.9
local grab_next=
- local do_color=normal
+ local do_color=dark
local do_help=
local i=0
local m=
local defines_override=
local process=
local verbosity=normal
+ local verbose=
+ local verbose_common=
local enable_shared=
local enable_static=
if [[ $grab_next == "" ]] ; then
if [[ $p == "-h" || $p == "--help" ]] ; then
do_help=yes
- elif [[ $p == "+n" || $p == "++no_color" ]] ; then
- do_color=none
+ elif [[ $p == "+d" || $p == "++dark" ]] ; then
+ do_color=dark
+ context="+d"
elif [[ $p == "+l" || $p == "++light" ]] ; then
do_color=light
+ context="+l"
+ elif [[ $p == "+n" || $p == "++no_color" ]] ; then
+ do_color=none
+ context="+n"
elif [[ $p == "+q" || $p == "++quiet" ]] ; then
verbosity="quiet"
verbose=
+ verbose_common=
+ elif [[ $p == "+N" || $p == "++normal" ]] ; then
+ verbosity=
+ verbose=
+ verbose_common=
+ elif [[ $p == "+V" || $p == "++verbose" ]] ; then
+ verbosity="verbose"
+ verbose="+V"
+ verbose_common="-v"
+ elif [[ $p == "+D" || $p == "++debug" ]] ; then
+ verbosity="debug"
+ verbose="+D"
+ verbose_common="-v"
elif [[ $p == "+v" || $p == "++version" ]] ; then
echo $version
return
- elif [[ $p == "+V" || $p == "++verbose" ]] ; then
- verbosity="verbose"
- verbose="-v"
elif [[ $p == "-d" || $p == "--defines" ]] ; then
grab_next=defines_override
elif [[ $p == "-m" || $p == "--mode" ]] ; then
echo
echo -e "${c_highlight}Options:$c_reset"
echo -e " -${c_important}h$c_reset, --${c_important}help$c_reset Print this help screen."
+ echo -e " +${c_important}d$c_reset, ++${c_important}dark$c_reset Use color modes that show up better on dark backgrounds."
echo -e " +${c_important}l$c_reset, ++${c_important}light$c_reset Use color modes that show up better on light backgrounds."
echo -e " +${c_important}n$c_reset, ++${c_important}no_color$c_reset Do not use color."
- echo -e " +${c_important}q$c_reset, ++${c_important}quiet$c_reset Decrease verbosity beyond normal output."
+ echo -e " +${c_important}q$c_reset, ++${c_important}quiet$c_reset Decrease verbosity, silencing most output."
+ echo -e " +${c_important}N$c_reset, ++${c_important}normal$c_reset Set verbosity to normal."
echo -e " +${c_important}V$c_reset, ++${c_important}verbose$c_reset Increase verbosity beyond normal output."
+ echo -e " +${c_important}D$c_reset, ++${c_important}debug$c_reset Enable debugging, significantly increasing verbosity beyond normal output."
echo -e " +${c_important}v$c_reset, ++${c_important}version$c_reset Print the version number of this program."
echo
echo -e "${c_highlight}Bootstrap Options:$c_reset"
local version=0.5.9
local grab_next=
- local do_color=normal
+ local do_color=dark
local do_help=
local i=0
local p=
local operation_failure=
local verbosity=normal
local verbose=
+ local verbose_common=
local path_build=build/
local path_programs=programs/
if [[ $grab_next == "" ]] ; then
if [[ $p == "-h" || $p == "--help" ]] ; then
do_help=yes
- elif [[ $p == "+n" || $p == "++no_color" ]] ; then
- do_color=none
+ elif [[ $p == "+d" || $p == "++dark" ]] ; then
+ do_color=dark
+ context="+d"
elif [[ $p == "+l" || $p == "++light" ]] ; then
do_color=light
+ context="+l"
+ elif [[ $p == "+n" || $p == "++no_color" ]] ; then
+ do_color=none
+ context="+n"
elif [[ $p == "+q" || $p == "++quiet" ]] ; then
verbosity="quiet"
verbose=
+ verbose_common=
+ elif [[ $p == "+N" || $p == "++normal" ]] ; then
+ verbosity=
+ verbose=
+ verbose_common=
+ elif [[ $p == "+V" || $p == "++verbose" ]] ; then
+ verbosity="verbose"
+ verbose="+V"
+ verbose_common="-v"
+ elif [[ $p == "+D" || $p == "++debug" ]] ; then
+ verbosity="debug"
+ verbose="+D"
+ verbose_common="-v"
elif [[ $p == "+v" || $p == "++version" ]] ; then
echo $version
return
- elif [[ $p == "+V" || $p == "++verbose" ]] ; then
- verbosity="verbose"
- verbose="-v"
elif [[ $p == "-b" || $p == "--build" ]] ; then
grab_next=path_build
elif [[ $p == "-s" || $p == "--settings" ]] ; then
echo
echo -e "${c_highlight}Options:$c_reset"
echo -e " -${c_important}h$c_reset, --${c_important}help$c_reset Print this help screen."
+ echo -e " +${c_important}d$c_reset, ++${c_important}dark$c_reset Use color modes that show up better on dark backgrounds."
echo -e " +${c_important}l$c_reset, ++${c_important}light$c_reset Use color modes that show up better on light backgrounds."
echo -e " +${c_important}n$c_reset, ++${c_important}no_color$c_reset Do not use color."
- echo -e " +${c_important}q$c_reset, ++${c_important}quiet$c_reset Decrease verbosity beyond normal output."
+ echo -e " +${c_important}q$c_reset, ++${c_important}quiet$c_reset Decrease verbosity, silencing most output."
+ echo -e " +${c_important}N$c_reset, ++${c_important}normal$c_reset Set verbosity to normal."
echo -e " +${c_important}V$c_reset, ++${c_important}verbose$c_reset Increase verbosity beyond normal output."
+ echo -e " +${c_important}D$c_reset, ++${c_important}debug$c_reset Enable debugging, significantly increasing verbosity beyond normal output."
echo -e " +${c_important}v$c_reset, ++${c_important}version$c_reset Print the version number of this program."
echo
echo -e "${c_highlight}Install Options:$c_reset"
if [[ $work != "" ]] ; then
if [[ $build_sources_program != "" && ( $enable_shared_programs == "yes" || $enable_static_programs == "yes" ) ]] ; then
if [[ ! -d ${work}programs ]] ; then
- mkdir $verbose ${work}programs
+ mkdir $verbose_common ${work}programs
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $enable_shared_programs == "yes" && ! -d ${work}programs/shared ]] ; then
- mkdir $verbose ${work}programs/shared
+ mkdir $verbose_common ${work}programs/shared
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $build_sources_program != "" && $enable_static_programs == "yes" && ! -d ${work}programs/static ]] ; then
- mkdir $verbose ${work}programs/static
+ mkdir $verbose_common ${work}programs/static
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
if [[ $build_sources_library != "" && ( $enable_shared_libraries == "yes" || $enable_static_libraries == "yes" ) ]] ; then
if [[ ! -d ${work}libraries ]] ; then
- mkdir $verbose ${work}libraries
+ mkdir $verbose_common ${work}libraries
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $build_sources_library != "" && $enable_shared_libraries == "yes" && ! -d ${work}libraries/shared ]] ; then
- mkdir $verbose ${work}libraries/shared
+ mkdir $verbose_common ${work}libraries/shared
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $build_sources_library != "" && $enable_static_libraries == "yes" && ! -d ${work}libraries/static ]] ; then
- mkdir $verbose ${work}libraries/static
+ mkdir $verbose_common ${work}libraries/static
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
if [[ $build_sources_headers != "" && $enable_includes == "yes" ]] ; then
if [[ ! -d ${work}includes ]] ; then
- mkdir $verbose ${work}includes
+ mkdir $verbose_common ${work}includes
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo -e "${c_highlight}Installing Includes to: $c_reset$c_notice$destination_includes$c_reset${c_highlight}.$c_reset"
fi
- cp $verbose -R $path_build${path_includes}* $destination_includes
+ cp $verbose_common -R $path_build${path_includes}* $destination_includes
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo -e "${c_highlight}Installing (static) Libraries to: $c_reset$c_notice$destination_libraries_static$c_reset${c_highlight}.$c_reset"
fi
- cp $verbose -R $path_build$path_libraries${path_static}* $destination_libraries_static
+ cp $verbose_common -R $path_build$path_libraries${path_static}* $destination_libraries_static
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo -e "${c_highlight}Installing (shared) Libraries to: $c_reset$c_notice$destination_libraries_shared$c_reset${c_highlight}.$c_reset"
fi
- cp $verbose -R $path_build$path_libraries${path_shared}* $destination_libraries_shared
+ cp $verbose_common -R $path_build$path_libraries${path_shared}* $destination_libraries_shared
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo -e "${c_highlight}Installing (static) Programs to: $c_reset$c_notice$destination_programs_static$c_reset${c_highlight}.$c_reset"
fi
- cp $verbose -R $path_build$path_programs${path_static}* $destination_programs_static
+ cp $verbose_common -R $path_build$path_programs${path_static}* $destination_programs_static
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo -e "${c_highlight}Installing (shared) Programs to: $c_reset$c_notice$destination_programs_shared$c_reset${c_highlight}.$c_reset"
fi
- cp $verbose -R $path_build$path_programs${path_shared}* $destination_programs_shared
+ cp $verbose_common -R $path_build$path_programs${path_shared}* $destination_programs_shared
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
local version=0.5.9
local grab_next=
- local do_color=normal
+ local do_color=dark
local do_help=
local i=0
local p=
local path_destination=package/
local path_sources=./
local verbosity=normal
+ local verbose=
+ local verbose_common=
if [[ $# -gt 0 ]] ; then
t=$#
if [[ $grab_next == "" ]] ; then
if [[ $p == "-h" || $p == "--help" ]] ; then
do_help=yes
- elif [[ $p == "+n" || $p == "++no_color" ]] ; then
- do_color=none
+ elif [[ $p == "+d" || $p == "++dark" ]] ; then
+ do_color=dark
+ context="+d"
elif [[ $p == "+l" || $p == "++light" ]] ; then
do_color=light
+ context="+l"
+ elif [[ $p == "+n" || $p == "++no_color" ]] ; then
+ do_color=none
+ context="+n"
elif [[ $p == "+q" || $p == "++quiet" ]] ; then
verbosity="quiet"
verbose=
+ verbose_common=
+ elif [[ $p == "+N" || $p == "++normal" ]] ; then
+ verbosity=
+ verbose=
+ verbose_common=
+ elif [[ $p == "+V" || $p == "++verbose" ]] ; then
+ verbosity="verbose"
+ verbose="+V"
+ verbose_common="-v"
+ elif [[ $p == "+D" || $p == "++debug" ]] ; then
+ verbosity="debug"
+ verbose="+D"
+ verbose_common="-v"
elif [[ $p == "+v" || $p == "++version" ]] ; then
echo $version
return
- elif [[ $p == "+V" || $p == "++verbose" ]] ; then
- verbosity="verbose"
- verbose="-v"
elif [[ $p == "-b" || $p == "--build" ]] ; then
grab_next=path_build
elif [[ $p == "-d" || $p == "--destination" ]] ; then
echo
echo -e "${c_highlight}Options:$c_reset"
echo -e " -${c_important}h$c_reset, --${c_important}help$c_reset Print this help screen."
+ echo -e " +${c_important}d$c_reset, ++${c_important}dark$c_reset Use color modes that show up better on dark backgrounds."
echo -e " +${c_important}l$c_reset, ++${c_important}light$c_reset Use color modes that show up better on light backgrounds."
echo -e " +${c_important}n$c_reset, ++${c_important}no_color$c_reset Do not use color."
- echo -e " +${c_important}q$c_reset, ++${c_important}quiet$c_reset Decrease verbosity beyond normal output."
+ echo -e " +${c_important}q$c_reset, ++${c_important}quiet$c_reset Decrease verbosity, silencing most output."
+ echo -e " +${c_important}N$c_reset, ++${c_important}normal$c_reset Set verbosity to normal."
echo -e " +${c_important}V$c_reset, ++${c_important}verbose$c_reset Increase verbosity beyond normal output."
+ echo -e " +${c_important}D$c_reset, ++${c_important}debug$c_reset Enable debugging, significantly increasing verbosity beyond normal output."
echo -e " +${c_important}v$c_reset, ++${c_important}version$c_reset Print the version number of this program."
echo
echo -e "${c_highlight}Package Options:$c_reset"