Merge "Create config file in merge_config_file"

This commit is contained in:
Jenkins 2015-04-17 19:32:24 +00:00 committed by Gerrit Code Review
commit e52cfc5524
2 changed files with 10 additions and 0 deletions

View File

@ -86,6 +86,14 @@ function merge_config_file {
local matchgroup=$2
local configfile=$3
# note, configfile might be a variable (note the iniset, etc
# created in the mega-awk below is "eval"ed too, so we just leave
# it alone.
local real_configfile=$(eval echo $configfile)
if [ ! -f $real_configfile ]; then
touch $real_configfile
fi
get_meta_section $file $matchgroup $configfile | \
$CONFIG_AWK_CMD -v configfile=$configfile '
BEGIN {

View File

@ -8,6 +8,8 @@ TOP=$(cd $(dirname "$0")/.. && pwd)
source $TOP/inc/ini-config
source $TOP/inc/meta-config
set -e
# check_result() tests and reports the result values
# check_result "actual" "expected"
function check_result {