summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/release/sha512sums
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/release/sha512sums')
-rwxr-xr-xresources/scripts/helpers/build/release/sha512sums8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/scripts/helpers/build/release/sha512sums b/resources/scripts/helpers/build/release/sha512sums
index cc7668b..f7c8754 100755
--- a/resources/scripts/helpers/build/release/sha512sums
+++ b/resources/scripts/helpers/build/release/sha512sums
@@ -22,7 +22,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}"
sha512filename="sha512sum.txt"
sha512filepath="${versiondir}/${sha512filename}"