From fbe6639ee1206870a9cedbfea959b94bfc67573d Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 2 Jun 2019 06:43:16 -0700 Subject: [PATCH] qb: Log the configure arguments in config.log. --- qb/qb.params.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qb/qb.params.sh b/qb/qb.params.sh index e280400c07..1834431093 100644 --- a/qb/qb.params.sh +++ b/qb/qb.params.sh @@ -68,6 +68,8 @@ opt_exists() # $opt is returned if exists in OPTS parse_input() # Parse stuff :V { BUILD='' OPTS='' + config_opts='./configure' + while read -r VAR _; do TMPVAR="${VAR%=*}" NEWVAR="${TMPVAR##HAVE_}" @@ -78,6 +80,7 @@ parse_input() # Parse stuff :V #things in opt_exists() while [ $# -gt 0 ]; do + config_opts="${config_opts} $1" case "$1" in --prefix=*) PREFIX=${1##--prefix=};; --global-config-dir=*|--sysconfdir=*) GLOBAL_CONFIG_DIR="${1#*=}";; @@ -110,6 +113,17 @@ parse_input() # Parse stuff :V esac shift done + + cat > config.log << EOF +Command line invocation: + + \$ ${config_opts} + +## ----------- ## +## Core Tests. ## +## ----------- ## + +EOF } . qb/config.params.sh