summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2023-07-31 16:19:21 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-08-03 16:59:40 -0300
commita9b451509565d40a5ca3b41c39a2b758cdbc5355 (patch)
treef55cc660af82302b0a20199d2f0cc48f199c7f70 /tools/perf/scripts/python
parente5764ae4c9714e58fa3c38a7e4900d4379dc2263 (diff)
tools build: Add 3-component logical version comparators
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: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions