Skip to content

Commit 2ad97fb

Browse files
author
Michael Opdenacker
committed
Switch to a usable default for list-tags -h
- This way, it's not always necessary to create custom definitions for new projects. - Update the definitions for projects that can use such a default. Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
1 parent d6dbdda commit 2ad97fb

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

projects/musl.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
# Elixir definitions for Musl
2-
3-
list_tags_h()
4-
{
5-
echo "$tags" |
6-
tac |
7-
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
8-
}
9-
2+
# Using the default ones so far!

projects/uclibc-ng.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
# Elixir definitions for uclibc-ng
2-
3-
list_tags_h()
4-
{
5-
echo "$tags" |
6-
tac |
7-
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
8-
}
9-
2+
# Using the default ones so far

script.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ list_tags()
4949

5050
list_tags_h()
5151
{
52+
echo "$tags" |
5253
tac |
53-
sed -r 's/^/XXX XXX /';
54+
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
5455
}
5556

5657
get_latest()

0 commit comments

Comments
 (0)