[ET Trac] [Einstein Toolkit] #1635: hwloc requires a certain minimum version, but does not check for it
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Sat Dec 20 14:59:41 CST 2014
#1635: hwloc requires a certain minimum version, but does not check for it
---------------------+------------------------------------------------------
Reporter: knarf | Owner:
Type: defect | Status: reopened
Priority: major | Milestone:
Component: Cactus | Version: development version
Resolution: | Keywords: backport
---------------------+------------------------------------------------------
Comment (by rhaas):
We don't have to use just bash. We can also use perl (Cactus requires it)
or awk (POSIX requires it). So something like:
{{{
echo "1.42.12" | perl -ne 'm/0*(\d+)[.]0*(\d+)[.]0*(\d+)/; exit (($1 >= 1
and $2 >= 9 and $3 >= 11) ? 0 : 1)'
}}}
would do the trick of checking that the version is larger or equal to
1.9.11.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1635#comment:10>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list