Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dae00d2

Browse files
committedJan 28, 2025
WIP: limit Linux tags
1 parent f478ffd commit dae00d2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎projects/linux.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ get_tags()
99
version_dir |
1010
sed -r 's/^(pre|lia64-|)(v?[0-9\.]*)(pre|-[^pf].*?|)(alpha|-[pf].*?|)([0-9]*)(.*?)$/\2#\3@\4@\5@\60@\1.0/' |
1111
sort -V |
12-
sed -r 's/^(.*?)#(.*?)@(.*?)@(.*?)@(.*?)0@(.*?)\.0$/\6\1\2\3\4\5/'
12+
sed -r 's/^(.*?)#(.*?)@(.*?)@(.*?)@(.*?)0@(.*?)\.0$/\6\1\2\3\4\5/' |
13+
head
1314
}
1415

1516
list_tags_h()

‎script.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ get_tags()
4848
version_dir |
4949
sed 's/$/.0/' |
5050
sort -V |
51-
sed 's/\.0$//'
51+
sed 's/\.0$//' |
52+
head
5253
}
5354

5455
list_tags()
@@ -65,7 +66,7 @@ list_tags_h()
6566

6667
get_latest_tags()
6768
{
68-
git tag | version_dir | grep -v '\-rc' | sort -Vr
69+
git tag | version_dir | grep -v '\-rc' | sort -Vr | head
6970
}
7071

7172
get_type()

0 commit comments

Comments
 (0)
Please sign in to comment.