tar version comparison
blb at macports.org
Thu Jul 2 12:41:42 PDT 2009
On Thu, Jul 02, 2009 at 11:56:57AM -0700, Darren Weber said:
> On Wed, Jul 1, 2009 at 2:20 PM, Toby Peterson <toby at apple.com> wrote:
> > pextlib provides 'rpm-vercomp' which probably does what you want.
> Is this command available in a Portfile? Where are the docs on how to use
'man portfile' appears to be the only documentation for it beyond the
source, though the docs there are short of verbose:
rpm-vercomp versionA versionB
Compare two RPM-format versions for equality.
This works like strcmp() in that it returns -1, 0, or 1 when versionA is
earlier, equal, or later than versionB.
More information about the macports-dev