Add support for the Zephyr project.

This commit is contained in:
Henrik Brix Andersen 2018-02-25 20:15:43 +01:00
parent 537e6b3a7b
commit c76178d626
2 changed files with 25 additions and 3 deletions

View file

@ -89,7 +89,8 @@ directory with a specific structure:
It will then generate the other two variables upon calling the query
command. For now, three projects are hard-coded into the shell script
(to handle version grouping and display): Linux, U-Boot and Busybox.
(to handle version grouping and display): Linux, U-Boot, Busybox and
Zephyr.
Here is an example configuration for Apache:

View file

@ -86,6 +86,12 @@ case $cmd in
tac |
sed -r 's/^([0-9])\.([0-9]*)(.*)$/v\1 \1.\2 \1.\2\3/'
;;
zephyr)
echo "$tags" |
grep -v '^zephyr-v' |
tac |
sed -r 's/^(v[0-9])\.([0-9]*)(.*)$/\1 \1.\2 \1.\2\3/'
;;
*)
echo "$tags" |
tac |
@ -93,12 +99,27 @@ case $cmd in
;;
esac
else
echo "$tags"
case $project in
zephyr)
echo "$tags" |
grep -v '^zephyr-v'
;;
*)
echo "$tags"
;;
esac
fi
;;
get-latest)
git tag | version_dir | grep -v '\-rc' | sort -V | tail -n 1
case $project in
zephyr)
git tag | grep -v '^zephyr-v' | version_dir | grep -v '\-rc' | sort -V | tail -n 1
;;
*)
git tag | version_dir | grep -v '\-rc' | sort -V | tail -n 1
;;
esac
;;
get-type)