From 7d4a259c9efbc2e6c5006e0d965e4a4976b54383 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 8 Jun 2015 16:42:33 +0100 Subject: build/release/*: if version file already exists, re-use it --- resources/scripts/helpers/build/release/tobuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'resources/scripts/helpers/build/release/tobuild') diff --git a/resources/scripts/helpers/build/release/tobuild b/resources/scripts/helpers/build/release/tobuild index dc0f5a17..3e9dac08 100755 --- a/resources/scripts/helpers/build/release/tobuild +++ b/resources/scripts/helpers/build/release/tobuild @@ -23,7 +23,13 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -version="$(git describe --tags HEAD)" +if [ -f "version" ]; then + # _src release archive is being used + version="$(cat version)" +else + # git repo is being used + version="$(git describe --tags HEAD)" +fi versiondir="release/${version}" distname="tobuild" distdir="${versiondir}/${distname}" -- cgit v1.2.3-70-g09d2