10000 use `git describe` for release version and fix type in zipball name · calow/android-database-sqlcipher@ceec37b · GitHub
[go: up one dir, main page]

Skip to content

Commit ceec37b

Browse files
committed
use git describe for release version and fix type in zipball name
sqlipher --> sqlcipher `git describe` will give only the name of the tag if the current commit is tagged. Otherwise, it will get the most recent tag, how many commits since that tag, and the commit hash id. This marks non-release builds clearly and enforces that the release must be made from the proper tagged git commit.
1 parent b066090 commit ceec37b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ SQLCIPHER_DIR := ${EXTERNAL_DIR}/sqlcipher
77
LICENSE := SQLCIPHER_LICENSE
88
ASSETS_DIR := assets
99
OPENSSL_DIR := ${EXTERNAL_DIR}/openssl
10+
GIT_DESCRIBE := $(shell git describe)
1011
LATEST_TAG := $(shell git tag | sort -r | head -1)
1112
SECOND_LATEST_TAG := $(shell git tag | sort -r | head -2 | tail -1)
12-
RELEASE_DIR := sqlipher-for-android-${LATEST_TAG}
13-
CHANGE_LOG_HEADER := "Changes included in the ${LATEST_TAG} release of SQLCipher for Android:"
13+
RELEASE_DIR := sqlcipher-for-android-${GIT_DESCRIBE}
14+
CHANGE_LOG_HEADER := "Changes included in the ${GIT_DESCRIBE} release of SQLCipher for Android:"
1415
README := ${RELEASE_DIR}/README
1516

1617
# Use faketime to freeze time to make for reproducible builds.

0 commit comments

Comments
 (0)
0