Skip to content

Commit 148e86d

Browse files
Merge pull request #493 from VTCSecureLLC/detect-update
Add detection when to update linphone core.
2 parents 8f2fe77 + f10e520 commit 148e86d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Tools/compile.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22
set -xe
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
cd $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
611
make generate-apk-without-sdk-build -j 8
712
else
813
make -j 8
14+
touch WORK/${SUBMODULE_HASH}
915
cp Makefile WORK/Makefile
1016
fi
1117
#ninja -C WORK/cmake

Tools/prepare.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ set -xe
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
cd $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
79
echo "Already cached"
810
cp WORK/Makefile Makefile
911
else

0 commit comments

Comments
 (0)