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
}
@@ -210,6 +209,7 @@ function usage() {
210
209
echo " -l Show a list of available modules"
211
210
echo " -m 'mod1 mod2' Modules to include"
212
211
echo " -f Restart from scratch (remove the current build)"
212
+ echo " -x display expanded values (execute 'set -x')"
213
213
echo
214
214
exit 0
215
215
}
@@ -615,7 +615,7 @@ function arm_deduplicate() {
615
615
616
616
617
617
# Do the build
618
- while getopts " :hvlfm :d:s" opt; do
618
+ while getopts " :hvlfxm :d:s" opt; do
619
619
case $opt in
620
620
h)
621
621
usage
@@ -638,6 +638,9 @@ while getopts ":hvlfm:d:s" opt; do
638
638
f)
639
639
DO_CLEAN_BUILD=1
640
640
;;
641
+ x)
642
+ DO_SET_X=1
643
+ ;;
641
644
\? )
642
645
echo " Invalid option: -$OPTARG " >&2
643
646
exit 1
@@ -653,4 +656,9 @@ while getopts ":hvlfm:d:s" opt; do
653
656
esac
654
657
done
655
658
659
+ if [ $DO_SET_X -eq 1 ]; then
660
+ info " Set -x for displaying expanded values"
661
+ set -x
662
+ fi
663
+
656
664
run
You can’t perform that action at this time.
0 commit comments