summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/release/tobuild
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/release/tobuild')
-rwxr-xr-xresources/scripts/helpers/build/release/tobuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/scripts/helpers/build/release/tobuild b/resources/scripts/helpers/build/release/tobuild
index dc0f5a1..3e9dac0 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}"