File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ CBLUE="\x1b[34;01m"
6262CGRAY=" \x1b[30;01m"
6363CRESET=" \x1b[39;49;00m"
6464DO_CLEAN_BUILD=0
65+ DO_SET_X=0
6566
6667# Use ccache ?
6768which ccache & > /dev/null
@@ -71,8 +72,6 @@ if [ $? -eq 0 ]; then
7172 export NDK_CCACHE=" ccache"
7273fi
7374
74- set -x
75-
7675function try () {
7776 " $@ " || exit -1
7877}
@@ -210,6 +209,7 @@ function usage() {
210209 echo " -l Show a list of available modules"
211210 echo " -m 'mod1 mod2' Modules to include"
212211 echo " -f Restart from scratch (remove the current build)"
212+ echo " -x display expanded values (execute 'set -x')"
213213 echo
214214 exit 0
215215}
@@ -615,7 +615,7 @@ function arm_deduplicate() {
615615
616616
617617# Do the build
618- while getopts " :hvlfm :d:s" opt; do
618+ while getopts " :hvlfxm :d:s" opt; do
619619 case $opt in
620620 h)
621621 usage
@@ -638,6 +638,9 @@ while getopts ":hvlfm:d:s" opt; do
638638 f)
639639 DO_CLEAN_BUILD=1
640640 ;;
641+ x)
642+ DO_SET_X=1
643+ ;;
641644 \? )
642645 echo " Invalid option: -$OPTARG " >&2
643646 exit 1
@@ -653,4 +656,9 @@ while getopts ":hvlfm:d:s" opt; do
653656 esac
654657done
655658
659+ if [ $DO_SET_X -eq 1 ]; then
660+ info " Set -x for displaying expanded values"
661+ set -x
662+ fi
663+
656664run
You can’t perform that action at this time.
0 commit comments