aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release/roms
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/release/roms')
-rwxr-xr-xresources/scripts/helpers/build/release/roms8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms
index 6b026552..2f46f39a 100755
--- a/resources/scripts/helpers/build/release/roms
+++ b/resources/scripts/helpers/build/release/roms
@@ -28,7 +28,13 @@ if [ ! -d bin/ ]; then
exit 1
fi
-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}"
romdir="${versiondir}/rom"
distname="libreboot_${version}"