Sfoglia il codice sorgente

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.
Richard Smith 1 anno fa
parent
commit
dada4fc29f
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      README.md

+ 5 - 2
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:
 `carbon_toolchain-0.0.0-0.nightly.YYYY.MM.DD.tar.gz`. Then you can try it out:
 
 
 ```shell
 ```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:
 # Unpack the toolchain:
 tar -xvf carbon_toolchain-${VERSION}.tar.gz
 tar -xvf carbon_toolchain-${VERSION}.tar.gz