summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/download/bucts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-07-12 12:15:18 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-07-12 12:16:42 (EDT)
commitef5d5bf15910fc5bfe02df2afe9861691a9e4e32 (patch)
treeed5f24a269ab5ae363dbe4d8c4be60110ba2dab7 /resources/scripts/helpers/download/bucts
parent5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5 (diff)
downloadlibreboot-ef5d5bf15910fc5bfe02df2afe9861691a9e4e32.zip
libreboot-ef5d5bf15910fc5bfe02df2afe9861691a9e4e32.tar.gz
libreboot-ef5d5bf15910fc5bfe02df2afe9861691a9e4e32.tar.bz2
download/bucts: Verify checksums of downloaded files
Diffstat (limited to 'resources/scripts/helpers/download/bucts')
-rwxr-xr-xresources/scripts/helpers/download/bucts11
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/scripts/helpers/download/bucts b/resources/scripts/helpers/download/bucts
index 9448965..9b277f2 100755
--- a/resources/scripts/helpers/download/bucts
+++ b/resources/scripts/helpers/download/bucts
@@ -47,6 +47,17 @@ cd "bucts/"
printf "Patching bucts to not require git for building\n"
git reset --hard dc27919d7a66a6e8685ce07c71aefa4f03ef7c07
+
+# Verify checksums of the downloaded files
+# ------------------------------------------------------------------------------
+
+sha512sum -c "../resources/scripts/helpers/sha512sums/bucts" || (cd "../" && rm -Rf "bucts/" && printf "Invalid checksums for bucts\n" && exit 1)
+
+printf "Valid checksums for bucts\n"
+
+# Apply patches
+# ------------------------------------------------------------------------------
+
git am "../resources/bucts/patch/0001-Makefile-don-t-use-git.patch"
# we're done