build system: detect if build host has no bzip2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2022-01-04 14:32:41 +01:00
parent c3cfcc9242
commit ed2af2e82d
3 changed files with 20 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'`
zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2
for releasefile in busybox-$VERSION.tar.gz busybox-$VERSION.tar.bz2; do
test -f $releasefile || { echo "no $releasefile"; exit 1; }
gpg --detach-sign $releasefile
sha256sum $releasefile > $releasefile.sha256
test -f $releasefile || { echo "no $releasefile"; exit 1; }
gpg --detach-sign $releasefile
sha256sum $releasefile > $releasefile.sha256
done