elixir/projects/zephyr.sh
Michael Opdenacker e732c6a295 Version 0.3: support projects through rudimentary "plugins"
- Allows to add a project by just adding custom
  definitions to projects/<project>.sh

- Except for cases that haven't been anticipated yet,
  modifying common code should no longer be needed

Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
2018-04-03 15:29:08 +02:00

20 lines
329 B
Bash

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