• Arnaldo Carvalho de Melo's avatar
    tools build: Add 3-component logical version comparators · a9b45150
    Arnaldo Carvalho de Melo authored
    The next cset needs to compare if a flex version is greater or
    equal/less than another, but since there is no canonical, generally
    available way to compare versions in the command line (sort -V, yeah,
    but...), just use awk to canonicalize the versions like is also done in
    scripts/rust_is_available.sh.
    
    There was a problem spotted in linux-next where a bashism, here
    documents, aka the '<<<' stdin redirector, for strings to be used as the
    stdin for awk. Use $(shell echo | awk ...) instead.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    a9b45150
utilities.mak 6.04 KB