From ad9fa351693ef1740b650dac4d61b21207514f58 Mon Sep 17 00:00:00 2001 From: hayao Date: Tue, 16 Jun 2020 22:12:32 +0900 Subject: [PATCH] [update] : Added simulation mode. --- fullbuild.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/fullbuild.sh b/fullbuild.sh index 5cb01c97..d292bace 100755 --- a/fullbuild.sh +++ b/fullbuild.sh @@ -13,7 +13,7 @@ architectures=( ) work_dir=temp - +simulation=false retry=5 @@ -185,6 +185,7 @@ _help() { echo " -d Use the default build.sh arguments. (${default_options})" echo " -g Use gitversion." echo " -h This help message." + echo " -s Enable simulation mode." echo echo "!! WARNING !!" echo "Do not set channel or architecture with -a." @@ -196,7 +197,7 @@ _help() { share_options="" default_options="-b --noconfirm -l" -while getopts 'a:dgh' arg; do +while getopts 'a:dghs' arg; do case "${arg}" in a) share_options="${share_options} ${OPTARG}" ;; d) share_options="${share_options} ${default_options}" ;; @@ -208,6 +209,7 @@ while getopts 'a:dgh' arg; do share_options="${share_options} --gitversion" fi ;; + s) simulation=true;; h) _help ; exit 0 ;; *) _help ; exit 1 ;; esac @@ -223,8 +225,11 @@ fi for cha in ${channnels[@]}; do for arch in ${architectures[@]}; do for i in $(seq 1 ${retry}); do - #build - echo "build.sh ${share_options} -a ${arch} ${cha}" + if [[ "${simulation}" = true ]]; then + echo "build.sh ${share_options} -a ${arch} ${cha}" + else + build + fi done done done -- 2.11.0