Update hashes and add a script to automate that from GitHub artifacts.

This commit is contained in:
Guillaume Endignoux
2020-09-24 12:11:13 +02:00
parent 7485b097c1
commit c0062efa28
5 changed files with 41 additions and 26 deletions

15
update_hashes.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -eux
mkdir -p tmp
for OS in macos-10.15 ubuntu-18.04
do
unzip reproduced-$OS.zip -d tmp/reproduced-$OS/
tar -C tmp/reproduced-$OS/ -xvf tmp/reproduced-$OS/reproduced.tar
cp tmp/reproduced-$OS/reproducible/binaries.sha256sum reproducible/reference_binaries_$OS.sha256sum
cp tmp/reproduced-$OS/reproducible/elf2tab.txt reproducible/reference_elf2tab_$OS.txt
done
rm -R tmp