Skip to content

Commit

Permalink
WIP: limit Linux tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tleb committed Jan 28, 2025
1 parent f478ffd commit 147489d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion projects/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ get_tags()
version_dir |
sed -r 's/^(pre|lia64-|)(v?[0-9\.]*)(pre|-[^pf].*?|)(alpha|-[pf].*?|)([0-9]*)(.*?)$/\2#\3@\4@\5@\60@\1.0/' |
sort -V |
sed -r 's/^(.*?)#(.*?)@(.*?)@(.*?)@(.*?)0@(.*?)\.0$/\6\1\2\3\4\5/'
sed -r 's/^(.*?)#(.*?)@(.*?)@(.*?)@(.*?)0@(.*?)\.0$/\6\1\2\3\4\5/' |
head -n100
}

list_tags_h()
Expand Down
5 changes: 3 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ get_tags()
version_dir |
sed 's/$/.0/' |
sort -V |
sed 's/\.0$//'
sed 's/\.0$//' |
head -n100
}

list_tags()
Expand All @@ -65,7 +66,7 @@ list_tags_h()

get_latest_tags()
{
git tag | version_dir | grep -v '\-rc' | sort -Vr
git tag | version_dir | grep -v '\-rc' | sort -Vr | head -n100
}

get_type()
Expand Down

0 comments on commit 147489d

Please sign in to comment.