summaryrefslogtreecommitdiffstats
path: root/.travis/tagger.sh
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2019-01-04 13:13:19 +0100
committerGitHub <noreply@github.com>2019-01-04 13:13:19 +0100
commit792a0e805454c79732c42caa72bc74aa489129e4 (patch)
tree2c7cdcbca8403b283fcfafe21d1aba453005d904 /.travis/tagger.sh
parent8e42b85b44cf1753f09efdf4de5674c7860ee49d (diff)
Unify versioning (#5051)
* use 'git describe' * no need to embed version string anymore * fallback mechanism for package versioning
Diffstat (limited to '.travis/tagger.sh')
-rwxr-xr-x.travis/tagger.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/.travis/tagger.sh b/.travis/tagger.sh
index d3b7f8faf5..1b179b7c1c 100755
--- a/.travis/tagger.sh
+++ b/.travis/tagger.sh
@@ -24,19 +24,6 @@ if [ ! -f .gitignore ]; then
exit 1
fi
-# Embed new version in files which need it.
-# This wouldn't be needed if we could use `git tag` everywhere.
-function embed_version() {
- VERSION="$1"
- MAJOR=$(echo "$GIT_TAG" | cut -d . -f 1 | cut -d v -f 2)
- MINOR=$(echo "$GIT_TAG" | cut -d . -f 2)
- PATCH=$(echo "$GIT_TAG" | cut -d . -f 3 | cut -d '-' -f 1)
- sed -i "s/\\[VERSION_MAJOR\\], \\[.*\\]/\\[VERSION_MAJOR\\], \\[$MAJOR\\]/" configure.ac
- sed -i "s/\\[VERSION_MINOR\\], \\[.*\\]/\\[VERSION_MINOR\\], \\[$MINOR\\]/" configure.ac
- sed -i "s/\\[VERSION_PATCH\\], \\[.*\\]/\\[VERSION_PATCH\\], \\[$PATCH\\]/" configure.ac
- git add configure.ac
-}
-
# Figure out what will be new release candidate tag based only on previous ones.
# This assumes that RELEASES are in format of "v0.1.2" and prereleases (RCs) are using "v0.1.2-rc0"
function release_candidate() {
@@ -71,5 +58,4 @@ if [ -z "${GIT_TAG}" ]; then
;;
esac
fi
-embed_version "$GIT_TAG"
export GIT_TAG