elixir/projects/mesa.sh
Michael Opdenacker b6455234bb Mesa support: fix latest version
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
2019-08-30 16:01:15 +02:00

21 lines
371 B
Bash

# Elixir definitions for Mesa
list_tags()
{
echo "$tags" |
tac |
grep ^mesa-[0-9]*[\.][0-9]*
}
list_tags_h()
{
echo "$tags" |
grep ^mesa-[0-9]*[\.][0-9]* |
tac |
sed -r 's/^mesa-([0-9]*)(\.[0-9]*)(.*)$/v\1 v\1\2 mesa-\1\2\3/'
}
get_latest()
{
git tag | version_dir | grep ^mesa-[0-9]*[\.][0-9]* | grep -v '\-rc' | sort -V | tail -n 1
}