Skip to content

Commit

Permalink
doc: make a note about the alr version in the script (#34)
Browse files Browse the repository at this point in the history
Such version is used to build download links and thus should match the one used
in the releases page of the repository.
  • Loading branch information
mosteo authored Oct 15, 2024
1 parent bcc83cf commit 729b912
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 729b912

Please sign in to comment.