From dada4fc29f3e919f352ee568fd1f0288f047cb1e Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 28 Aug 2024 22:37:42 -0700 Subject: [PATCH] Make the nightly instructions work without modification. (#4266) Compute the date rather than including a placeholder for it. Also include a command to download the release, taken from Carbon Copy #4. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca0a05f21be4..273cec8bc79e 100644 --- a/README.md +++ b/README.md @@ -281,8 +281,11 @@ download the latest nightly toolchain tar file: `carbon_toolchain-0.0.0-0.nightly.YYYY.MM.DD.tar.gz`. Then you can try it out: ```shell -# A variable with the specific nightly version: -VERSION="0.0.0-0.nightly.YYYY.MM.DD" +# A variable with the nightly version from yesterday: +VERSION="$(date -d yesterday +0.0.0-0.nightly.%Y.%m.%d)" + +# Get the release +wget https://github.com/carbon-language/carbon-lang/releases/download/v${VERSION}/carbon_toolchain-${VERSION}.tar.gz # Unpack the toolchain: tar -xvf carbon_toolchain-${VERSION}.tar.gz