Support major versions greater than 9

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
This commit is contained in:
Michael Opdenacker 2019-07-09 16:12:26 +02:00
parent 2e015734cb
commit 608359fa18
5 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ list_tags_h()
echo "$tags" |
grep -v '_Major' |
tac |
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
sed -r 's/^(v[0-9]*)\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
}
get_latest()

View file

@ -6,7 +6,7 @@ list_tags_h()
echo "$tags" |
grep -v 'for-v0\.4' |
tac |
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
sed -r 's/^(v[0-9]*)\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
echo "$tags" |
grep 'for-v0\.4' |

View file

@ -14,6 +14,6 @@ list_tags_h()
{
echo "$tags" |
tac |
sed -r 's/^([0-9])\.([0-9]*)(.*)$/v\1 \1.\2 \1.\2\3/'
sed -r 's/^([0-9]*)\.([0-9]*)(.*)$/v\1 \1.\2 \1.\2\3/'
}

View file

@ -4,5 +4,5 @@ list_tags_h()
{
echo "$tags" |
tac |
sed -r 's/^(((v2.6)\.([0-9]*)(.*))|(v[0-9])\.([0-9]*)(.*))$/\3\6 \3\6.\4\7 \3\6.\4\7\5\8/'
sed -r 's/^(((v2.6)\.([0-9]*)(.*))|(v[0-9]*)\.([0-9]*)(.*))$/\3\6 \3\6.\4\7 \3\6.\4\7\5\8/'
}

View file

@ -11,7 +11,7 @@ list_tags_h()
echo "$tags" |
grep -v '^zephyr-v' |
tac |
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
sed -r 's/^(v[0-9]*)\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
}
get_latest()