|
| From: | Sam Steingold |
| Subject: | module request: comparing version numbers |
| Date: | Thu, 17 Jun 2010 13:33:31 -0400 |
| User-agent: | Thunderbird 2.0.0.24 (X11/20100318) |
Hi,some gnulib modules (e.g., gnulib/m4/libunistring-base.m4) have facilities for comparing version numbers, e.g., 1.5.22 with 2.2.8. it would be nice if there were a module (say, version-compare) which would export such a facility.
e.g., @VERSION_COMPARE@ would expand to
version_compare() {
...
}
which would return 0 or 1 depending on whether $1 is smaller than $2.
Thanks.
Sam.
| [Prev in Thread] | Current Thread | [Next in Thread] |