1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-10 20:15:54 +00:00

Exclude rc versions from release builds

This commit is contained in:
Felix Ableitner 2017-03-11 01:33:26 +09:00
parent da84070472
commit 30bbcab92c

View file

@ -19,7 +19,7 @@ PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "ext/syncthing/src/github.com/syncthing/syncthing/"
git fetch
CURRENT_TAG=$(git describe)
LATEST_TAG=$(git describe $(git rev-list --tags --max-count=1))
LATEST_TAG=$(git tag --sort=taggerdate | awk '!/rc/' | tail -1)
if [ $CURRENT_TAG != $LATEST_TAG ]
then
git checkout -f $LATEST_TAG