Skip to content

Commit

Permalink
Description how to get release: use standard shell tools.
Browse files Browse the repository at this point in the history
Don't put the user through the hassle to first have to install
some scripting language when they can use common tools available
in any shell.

Also set 'silent' flag on curl to adhere to the no-news-are-good-news
Unix principle.

PiperOrigin-RevId: 642802671
  • Loading branch information
hzeller authored and copybara-github committed Jun 13, 2024
1 parent adfbae0 commit c3649e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ The following downloads the latest github repo release binaries for an x64 Linux

```bash
# Determine the url of the latest release tarball.
LATEST_XLS_RELEASE_TARBALL_URL=$(curl -L \
LATEST_XLS_RELEASE_TARBALL_URL=$(curl -s -L \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/google/xls/releases | \
python3 -c 'import json; import sys; print(json.load(sys.stdin)[0]["assets"][0]["browser_download_url"])')
grep -m 1 -o 'https://.*/releases/download/.*\.tar\.gz')

# Download the tarball and unpack it, observe the version numbers for each of the included tools.
curl -O -L ${LATEST_XLS_RELEASE_TARBALL_URL}
Expand Down
4 changes: 2 additions & 2 deletions docs_src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ The following downloads the latest github repo release binaries for an x64 Linux

```bash
# Determine the url of the latest release tarball.
LATEST_XLS_RELEASE_TARBALL_URL=$(curl -L \
LATEST_XLS_RELEASE_TARBALL_URL=$(curl -s -L \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/google/xls/releases | \
python3 -c 'import json; import sys; print(json.load(sys.stdin)[0]["assets"][0]["browser_download_url"])')
grep -m 1 -o 'https://.*/releases/download/.*\.tar\.gz')

# Download the tarball and unpack it, observe the version numbers for each of the included tools.
curl -O -L ${LATEST_XLS_RELEASE_TARBALL_URL}
Expand Down

0 comments on commit c3649e0

Please sign in to comment.