Fix tags for llvm
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
This commit is contained in:
parent
c9dc29d58e
commit
f5c6d1cd0a
1 changed files with 14 additions and 0 deletions
|
|
@ -1,8 +1,22 @@
|
|||
# Elixir definitions for LLVM
|
||||
|
||||
list_tags()
|
||||
{
|
||||
echo "$tags" |
|
||||
tac |
|
||||
grep ^llvmorg-[0-9]*[\.][0-9]*
|
||||
}
|
||||
|
||||
list_tags_h()
|
||||
{
|
||||
echo "$tags" |
|
||||
grep ^llvmorg |
|
||||
grep -v init |
|
||||
tac |
|
||||
sed -r 's/^llvmorg-([0-9]*)\.([0-9]*)(.*)$/v\1 v\1.\2 llvmorg-\1.\2\3/'
|
||||
}
|
||||
|
||||
get_latest()
|
||||
{
|
||||
git tag | grep 'llvmorg' | grep -v init | sort -V | tail -n 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue