File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ _HOME2_=$( dirname $0 )
4+ export _HOME2_
5+ _HOME_=$( cd $_HOME2_ ; pwd)
6+ export _HOME_
7+
8+ basedir=" $_HOME_ " " /../android-refimpl-app/"
9+ cd " $basedir "
10+
11+ r1=' https://github.com/mackron/miniaudio'
12+ f1=' native-audio-jni/src/main/cpp/miniaudio.h'
13+
14+ tagspec=' '
15+ ver=$( git ls-remote --refs --sort=' v:refname' --tags " $r1 " 2> /dev/null \
16+ | cut --delimiter=' /' --fields=3 2> /dev/null \
17+ | tail -1 2> /dev/null \
18+ )
19+
20+
21+ # define MA_VERSION_MAJOR 0
22+ # define MA_VERSION_MINOR 11
23+ # define MA_VERSION_REVISION 21
24+
25+ major=$( cat " $f1 " | grep ' define MA_VERSION_MAJOR' | awk ' {print $3}' | tr -d ' ' )
26+ minor=$( cat " $f1 " | grep ' define MA_VERSION_MINOR' | awk ' {print $3}' | tr -d ' ' )
27+ revis=$( cat " $f1 " | grep ' define MA_VERSION_REVISION' | awk ' {print $3}' | tr -d ' ' )
28+
29+ current_ver=" $major " ' .' " $minor " ' .' " $revis "
30+
31+ # echo "current version=$current_ver"
32+
33+ if [ " $current_ver " " x" != " $ver " " x" ]; then
34+ echo " __VERSIONUPDATE__:" " $ver "
35+ else
36+ :
37+ # no new version available
38+ fi
You can’t perform that action at this time.
0 commit comments