summaryrefslogtreecommitdiff
path: root/stage
diff options
context:
space:
mode:
Diffstat (limited to 'stage')
-rwxr-xr-xstage11
1 files changed, 9 insertions, 2 deletions
diff --git a/stage b/stage
index d4b5272..40d5bee 100755
--- a/stage
+++ b/stage
@@ -160,19 +160,26 @@ checksum_line "build2-mingw-$v-x86_64-windows.tar.xz"
#checksum_line "build2-baseutils-$v-i686-windows.zip"
#checksum_line "build2-mingw-$v-i686-windows.tar.xz"
-# Prepare install script/batch files.
+# Prepare install script/batch files and then append their checksums to
+# toolchain.sha256.
#
case "$mode" in
-q) o=--queue ;;
-p) o= ;;
*) o=--stage ;;
esac
-private/install/prepare "$o" "$dist_src"
+
+scripts=($(private/install/prepare "$o" "$dist_src"))
+
+for f in "${scripts[@]}"; do
+ checksum_line "$f"
+done
if [ "$mode" = "-p" ]; then
exit 0
fi
+
# Sync the distribution.
#
# Note that we do the distribution first so that the toolchain changes are