qb: Log the configure arguments in config.log.

This commit is contained in:
orbea 2019-06-02 06:43:16 -07:00
parent cc22680480
commit fbe6639ee1

View File

@ -68,6 +68,8 @@ opt_exists() # $opt is returned if exists in OPTS
parse_input() # Parse stuff :V parse_input() # Parse stuff :V
{ BUILD='' { BUILD=''
OPTS='' OPTS=''
config_opts='./configure'
while read -r VAR _; do while read -r VAR _; do
TMPVAR="${VAR%=*}" TMPVAR="${VAR%=*}"
NEWVAR="${TMPVAR##HAVE_}" NEWVAR="${TMPVAR##HAVE_}"
@ -78,6 +80,7 @@ parse_input() # Parse stuff :V
#things in opt_exists() #things in opt_exists()
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
config_opts="${config_opts} $1"
case "$1" in case "$1" in
--prefix=*) PREFIX=${1##--prefix=};; --prefix=*) PREFIX=${1##--prefix=};;
--global-config-dir=*|--sysconfdir=*) GLOBAL_CONFIG_DIR="${1#*=}";; --global-config-dir=*|--sysconfdir=*) GLOBAL_CONFIG_DIR="${1#*=}";;
@ -110,6 +113,17 @@ parse_input() # Parse stuff :V
esac esac
shift shift
done done
cat > config.log << EOF
Command line invocation:
\$ ${config_opts}
## ----------- ##
## Core Tests. ##
## ----------- ##
EOF
} }
. qb/config.params.sh . qb/config.params.sh