aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-10-11 03:43:24 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-10-11 03:43:24 +0100
commit0822755786a7f97faef9b2c8a10ff92f380f69d9 (patch)
tree9b9a33f1f14df9ad0fc3d9e34a983922548399d1 /resources/scripts
parentdcda30deb167742f2f369225141a6495239bcb7f (diff)
downloadlibrebootfr-0822755786a7f97faef9b2c8a10ff92f380f69d9.tar.gz
librebootfr-0822755786a7f97faef9b2c8a10ff92f380f69d9.zip
download/coreboot: add coreboot version info
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/helpers/download/coreboot9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/scripts/helpers/download/coreboot b/resources/scripts/helpers/download/coreboot
index 7fee71dc..2e1059b3 100755
--- a/resources/scripts/helpers/download/coreboot
+++ b/resources/scripts/helpers/download/coreboot
@@ -155,4 +155,13 @@ cd "../"
printf "Deblobbing coreboot\n"
./resources/utilities/coreboot-libre/deblob
+if [ -f "version" ]; then
+ # _src release archive is being used
+ version="libreboot-$(cat version)"
+else
+ # git repo is being used
+ version="libreboot-$(git describe --tags HEAD)"
+fi
+printf '%s\n' "${version}" >"coreboot/.coreboot-version"
+
printf "\n\n"