mirror of
https://github.com/Luzifer/vercmp.git
synced 2024-12-22 19:01:16 +00:00
Port of Archlinux vercmp utility for other OS
.gitignore | ||
.repo-runner.yaml | ||
go.mod | ||
go.sum | ||
History.md | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md |
Luzifer / vercmp
vercmp
resembles vercmp
utility from Archlinux with two small differences: It runs on systems without libalpm.so
and it strictly uses SemVer - otherwise it should be fully interchangeable.
Usage
# vercmp
Compare version numbers using SemVer version logic
Usage: vercmp <ver1> <ver2>
Output values:
< 0 : if ver1 < ver2
0 : if ver1 == ver2
> 0 : if ver1 > ver2
# vercmp 7.6.0 7.4.1
1