File tree 1 file changed +11
-3
lines changed
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"
62
62
CGRAY=" \x1b[30;01m"
63
63
CRESET=" \x1b[39;49;00m"
64
64
DO_CLEAN_BUILD=0
65
+ DO_SET_X=0
65
66
66
67
# Use ccache ?
67
68
which ccache & > /dev/null
@@ -71,8 +72,6 @@ if [ $? -eq 0 ]; then
71
72
export NDK_CCACHE=" ccache"
72
73
fi
73
74
74
- set -x
75
-
76
75
function try () {
77
76
" $@ " || exit -1
78
77
}
@@ -209,6 +208,7 @@ function usage() {
209
208
echo " -l Show a list of available modules"
210
209
echo " -m 'mod1 mod2' Modules to include"
211
210
echo " -f Restart from scratch (remove the current build)"
211
+ echo " -x display expanded values (execute 'set -x')"
212
212
echo
213
213
exit 0
214
214
}
@@ -614,7 +614,7 @@ function arm_deduplicate() {
614
614
615
615
616
616
# Do the build
617
- while getopts " :hvlfm :d:s" opt; do
617
+ while getopts " :hvlfxm :d:s" opt; do
618
618
case $opt in
619
619
h)
620
620
usage
@@ -637,6 +637,9 @@ while getopts ":hvlfm:d:s" opt; do
637
637
f)
638
638
DO_CLEAN_BUILD=1
639
639
;;
640
+ x)
641
+ DO_SET_X=1
642
+ ;;
640
643
\? )
641
644
echo " Invalid option: -$OPTARG " >&2
642
645
exit 1
@@ -652,4 +655,9 @@ while getopts ":hvlfm:d:s" opt; do
652
655
esac
653
656
done
654
657
658
+ if [ $DO_SET_X -eq 1 ]; then
659
+ info " Set -x for displaying expanded values"
660
+ set -x
661
+ fi
662
+
655
663
run
You can’t perform that action at this time.
0 commit comments