File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22set -xe
33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
44cd $DIR /..
5- if [ -e WORK/Makefile ]; then
5+
6+
7+
8+ SUBMODULE_HASH=$( md5sum current.txt | awk ' {print $1}' )
9+
10+ if [ -e WORK/${SUBMODULE_HASH} ]; then
611make generate-apk-without-sdk-build -j 8
712else
813make -j 8
14+ touch WORK/${SUBMODULE_HASH}
915cp Makefile WORK/Makefile
1016fi
1117# ninja -C WORK/cmake
Original file line number Diff line number Diff line change 33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
44cd $DIR /..
55
6- if [ -e WORK/Makefile ]; then
6+ git submodule | cut -d' (' -f1 | awk ' {print substr($0, 2, length($0))}' | sort > current.txt
7+ SUBMODULE_HASH=$( md5sum current.txt | awk ' {print $1}' )
8+ if [ -e WORK/${SUBMODULE_HASH} ]; then
79echo " Already cached"
810cp WORK/Makefile Makefile
911else
You can’t perform that action at this time.
0 commit comments