]>
git.proxmox.com Git - debcargo-conf.git/blob - dev/filter-semver.sh
2 # Given a full version string, output just the part that is significant for
3 # semver. i.e.. 0.x.* becomes 0.x and x.* becomes x for x != 0.
5 -e 's/([1-9]+)\.[0-9]+\.[0-9]+/\1/g' \
6 -e 's/(0\.[0-9]+)\.[0-9]+/\1/g'