Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: make a note about the alr version in the script #34

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions update-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ fi
# First print the list of crates so that it is visible in the logs
alr --no-tty search --crates

# NOTE: these versions should match exactly the one used in the download link
# in the releases page of the alire repository.
alr_version=$(alr --no-tty version | grep "alr version" | cut -d: -f2 | tr -d '[:blank:]')
alire_lib_version=$(alr --no-tty version | grep "libalire version" | cut -d: -f2 | tr -d '[:blank:]')

index_branch=$(alr --no-tty version | grep "community index branch" | cut -d: -f2 | tr -d '[:blank:]')

# Fix version for alr 2.0.0 that is not using a full semver format
Expand All @@ -24,6 +27,7 @@ if [ "x$alr_version" = "x2.0.2+9b80158" ]; then
alr_version="2.0.2"
alire_lib_version="2.0.2"
fi

echo "From community branch \`${index_branch}\`."
echo "Alr \`${alr_version}\`."
echo "Alire Library \`${alire_lib_version}\`."
Expand Down