Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakski committed Jan 10, 2024
1 parent e3cdfc6 commit 5d0d297
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/list-all
Expand Up @@ -4,6 +4,10 @@ set -euo pipefail

declare janet_repo="https://github.com/janet-lang/janet"
git ls-remote --tags --refs "$janet_repo" |
sed -ne 's/.*refs\/tags\/v\(\([[:digit:]]\+\.\)\{2\}[[:digit:]]\+\)$/\1/p' |
grep -o 'refs/tags/.*' |
cut -d/ -f3- |
sed 's/^v//' |
sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z\1/; s/$/.z/; G; s/\n/ /' |
LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n |
awk '{print $2}' |
xargs printf "%s "

0 comments on commit 5d0d297

Please sign in to comment.