Version number comparison library and utility.

About

libcvercmp is library providing functions to compare arbitrary version numbers with each other. Distribution contains also cvercmp-command that uses cvercmp library to compare version numbers given to it.

libcvercmp

Available comparison operations (enum cvercmp_type) are: API has these functions: cvercmp_cmp() returns either CVERCMP_LESSER, CVERCMP_EQUAL, or CVERCMP_GREATER.

cvercmp

Command vercmp takes three arguments; two versions, and comparison operation between them. It both prints out either "Yes" or "No", and sets its return value to indicate the result of the comparison. First version must be [operation] than latter version, e.g., cvercmp $INSTALLED_VERSION min 2.0-beta3 returns true if INSTALLED_VERSION is at least 2.0-beta3.

Comparison operations are:

Version control

Anonymous read access to subversion repository is available

svn://svn.cazfi.net/cvercmp/trunk

Releases

1.0.4 (01-Jan-16)

svn://svn.cazfi.net/cvercmp/tags/R1.0.4

cvercmp-1.0.4.tar.xz

1.0.3 (17-Apr-15)

svn://svn.cazfi.net/cvercmp/tags/R1.0.3

cvercmp-1.0.3.tar.xz

1.0.2 (31-Mar-13)

svn://svn.cazfi.net/cvercmp/tags/R1.0.2

cvercmp-1.0.2.tar.xz

1.0.1 (29-Mar-13)

svn://svn.cazfi.net/cvercmp/tags/R1.0.1

cvercmp-1.0.1.tar.xz

1.0 (16-May-12)

svn://svn.cazfi.net/cvercmp/tags/R1.0

cvercmp-1.0.tar.xz

Contact

Marko Lindqvist