summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/release/roms
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-08 11:42:33 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-08 11:42:33 (EDT)
commit7d4a259c9efbc2e6c5006e0d965e4a4976b54383 (patch)
tree9f609844104c9351c5157b73f8628ed44caf092c /resources/scripts/helpers/build/release/roms
parent75d714f5500d88bf9f6ed5c89a5ae29b32955563 (diff)
downloadlibreboot-7d4a259c9efbc2e6c5006e0d965e4a4976b54383.zip
libreboot-7d4a259c9efbc2e6c5006e0d965e4a4976b54383.tar.gz
libreboot-7d4a259c9efbc2e6c5006e0d965e4a4976b54383.tar.bz2
build/release/*: if version file already exists, re-use it
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 6b02655..2f46f39 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}"