mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
[feat] Smaller version on annotated tag (#4295)
This commit is contained in:
7
Makefile
7
Makefile
@@ -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)
|
||||
|
||||
5
kodev
5
kodev
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user