1
0
Fork 0
mirror of https://github.com/Luzifer/vercmp.git synced 2024-10-18 05:54:22 +00:00
Port of Archlinux vercmp utility for other OS
Find a file
Knut Ahlers 2141bc4068
Add publishing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-07-06 23:27:15 +02:00
.gitignore Initial version 2020-07-06 23:22:49 +02:00
.repo-runner.yaml Add publishing 2020-07-06 23:27:15 +02:00
go.mod Initial version 2020-07-06 23:22:49 +02:00
go.sum Initial version 2020-07-06 23:22:49 +02:00
LICENSE Initial version 2020-07-06 23:22:49 +02:00
main.go Initial version 2020-07-06 23:22:49 +02:00
Makefile Add publishing 2020-07-06 23:27:15 +02:00
README.md Initial version 2020-07-06 23:22:49 +02:00

Go Report Card

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