Hello,

maybe someone can tell me whether my little shell snippet is based on
the right assumptions in order to find the Valgrind version:

valgrind --version|sed 's/valgrind-//g;s/\([0-9]*\.[0-9]\)\..*/\1/'

Can one rely on the format of the string being
"valgrind-x.y.z[whatever]" (where x.y are the major and minor version
number)?

The default seems to be "valgrind-x.y.z" but on Ubuntu I've seen
"valgrind-3.6.0.SVN-Debian" and I'm only after major and minor version
number as I presume that similar incompatibilities would not get
introduced with patch releases (where z varies).


Thanks,

// Oliver

PS: The reason has to do with the incompatibility between 3.5 and 3.6,
so I can pick the proper header when building my binary.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to