[feat] Smaller version on annotated tag (#4295)

pull/4299/head
Frans de Jonge 6 years ago committed by GitHub
parent f3ce1c224d
commit d1298ff8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,9 +5,12 @@ KOR_BASE?=base
# able to fail:
-include $(KOR_BASE)/Makefile.defs
# we want VERSION to carry the version of koreader, not koreader-base
# We want VERSION to carry the version of the KOReader main repo, not that of koreader-base
VERSION:=$(shell git describe HEAD)
VERSION:=$(VERSION)_$(shell git describe HEAD | xargs git show -s --format=format:"%cd" --date=short)
# Only append date if we're not on a whole version, like v2018.11
ifneq (,$(findstring -,$(VERSION)))
VERSION:=$(VERSION)_$(shell git describe HEAD | xargs git show -s --format=format:"%cd" --date=short)
endif
# set PATH to find CC in managed toolchains
ifeq ($(TARGET), android)

@ -2,7 +2,10 @@
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VERSION=$(git describe HEAD)
VERSION=${VERSION}_$(git describe HEAD | xargs git show -s --format=format:"%cd" --date=short)
# Only append date if we're not on a whole version, like v2018.11
if $VERSION | grep -; then
VERSION=${VERSION}_$(git describe HEAD | xargs git show -s --format=format:"%cd" --date=short)
fi
# Default Android build to arm.
ANDROID_ARCH="${ANDROID_ARCH:-arm}"

Loading…
Cancel
Save