From 099788289fc48505ab6ceaa1a7e105ccadb61de4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 24 Oct 2026 13:16:53 -0500 Subject: [PATCH] Create tarball and sha256sums. --- mkroot/tar-for-web.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mkroot/tar-for-web.sh b/mkroot/tar-for-web.sh index 5bb6d80c..625d0315 100755 --- a/mkroot/tar-for-web.sh +++ b/mkroot/tar-for-web.sh @@ -1,5 +1,10 @@ #!/bin/bash +COMMIT="$(git tag --contains HEAD)" + +[ -z "$COMMIT" ] && echo not tagged && exit 1 +git archive --prefix=toybox-$COMMIT/ $COMMIT | gzip -9 > toybox-$COMMIT.tar.gz + # tar up completed system images to send to website, with READMEs rm -f root/toybox-* root/*.tgz @@ -34,6 +39,9 @@ See https://landley.net/toybox/faq.html#mkroot for details. Built from mkroot $(git describe --tags), and Linux $KVERS with patches in linux-patches/ EOF +(sha256sum toybox-$COMMIT.tar.gz && cd root && sha256sum toybox-* *.tgz) | \ + tee $COMMIT.sha256sum + if [ $# -eq 2 ] then scp root/toybox-* "$1/$2/" && -- 2.39.5