From b9241f6b142b78ba110a03fadc366ca221261ac3 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Mon, 4 Nov 2024 09:11:34 -0700 Subject: [PATCH] infra: support listing deps in `update-rustc.sh` --- tools/update-rustc.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/update-rustc.sh b/tools/update-rustc.sh index de04b3a07..72d8d8917 100755 --- a/tools/update-rustc.sh +++ b/tools/update-rustc.sh @@ -2,6 +2,16 @@ set -eu +# Build book `trpl` crate dependency in the location where the listings will go +# looking for it so they can compile correctly. +echo 'Building book dependencies in tmp/packages...' +mkdir -p tmp/packages +cp -r packages/trpl tmp/packages/trpl +cd tmp/packages/trpl +cargo clean > /dev/null +cargo build > /dev/null +cd - > /dev/null + # Build the book before making any changes for comparison of the output. echo 'Building book into tmp/book-before before updating...' mdbook build -d tmp/book-before