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}
@@ -209,6 +208,7 @@ function usage() {
209208 echo " -l Show a list of available modules"
210209 echo " -m 'mod1 mod2' Modules to include"
211210 echo " -f Restart from scratch (remove the current build)"
211+ echo " -x display expanded values (execute 'set -x')"
212212 echo
213213 exit 0
214214}
@@ -614,7 +614,7 @@ function arm_deduplicate() {
614614
615615
616616# Do the build
617- while getopts " :hvlfm :d:s" opt; do
617+ while getopts " :hvlfxm :d:s" opt; do
618618 case $opt in
619619 h)
620620 usage
@@ -637,6 +637,9 @@ while getopts ":hvlfm:d:s" opt; do
637637 f)
638638 DO_CLEAN_BUILD=1
639639 ;;
640+ x)
641+ DO_SET_X=1
642+ ;;
640643 \? )
641644 echo " Invalid option: -$OPTARG " >&2
642645 exit 1
@@ -652,4 +655,9 @@ while getopts ":hvlfm:d:s" opt; do
652655 esac
653656done
654657
658+ if [ $DO_SET_X -eq 1 ]; then
659+ info " Set -x for displaying expanded values"
660+ set -x
661+ fi
662+
655663run
You can’t perform that action at this time.
0 commit comments