prokka icon indicating copy to clipboard operation
prokka copied to clipboard

Parallel version detection

Open ole-tange opened this issue 3 years ago • 1 comments

Hi

This:

  'parallel' => {
    GETVER  => "parallel --version | grep -E 'parallel 2[0-9]{7}\$'",
    REGEXP  => qr/parallel (\d+)/,
    MINVER  => "20130422",
    NEEDED  => 1,
  },

is not supported by GNU Parallel (in other words it may break in future versions). However, this is:

parallel --minversion 20130422 || echo Version 20130422 needed

It will both set the exit code and output the version number (which is probably what you are going to use).

--minversion is specifially built for situations like this.

So this will probably work:

  'parallel' => {
    GETVER  => "parallel --minversion 20130422",
    REGEXP  => qr/(\d+)/,
    MINVER  => "20130422",
    NEEDED  => 1,
  },

ole-tange avatar Apr 09 '21 07:04 ole-tange

Thank you @ole-tange! And thank you for developing parallel!!

andersgs avatar Apr 09 '21 16:04 andersgs