Implement sha256summing in bash build harness

1. Adds sha256sum stage to the bash build harness.
2. Adds a third argument to build(), the checksum file name. This is
   used where there is more than one checksum file, most notably
   in multi-stage compilations.
3. Adds checksum files to all remaining programs.
4. Adds appropriate 3rd argument where needed (coreutils, tcc-musl,
   bison).
This commit is contained in:
fosslinux 2021-02-18 18:29:58 +11:00
parent 8724c94d20
commit 77ccf06efc
14 changed files with 93 additions and 5 deletions

View file

@ -1,6 +1,8 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
@ -25,9 +27,9 @@ build m4-1.4.7
build flex-2.6.4
# Part 25
build bison-3.4.1 stage1.sh
build bison-3.4.1 stage2.sh
build bison-3.4.1 stage3.sh
build bison-3.4.1 stage1.sh checksums/stage1
build bison-3.4.1 stage2.sh checksums/stage2
build bison-3.4.1 stage3.sh checksums/stage3
# Part 26
build grep-2.4
@ -36,7 +38,7 @@ build grep-2.4
build diffutils-2.7
# Part 28
build coreutils-5.0
build coreutils-5.0 coreutils-5.0.sh checksums/pass2
# Part 29
build gawk-3.0.4