Osmocom ABI Check
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
osmo-abi-check/print_releases.sh

18 lines
322 B

#!/bin/bash
cd $1
order=${2:-desc}
if [ "$order" != "desc" ] && [ "$order" != "asc" ]; then
echo "order must be 'asc' or 'desc'"
exit 1
fi
desc_flag=""
if [ "$order" = "desc" ]; then
desc_flag="-"
fi
VERS="$(git tag -l --sort=${desc_flag}v:refname | grep "^[0-9]*.[0-9]*.[0-9]*$")"
echo $VERS