Mathieu Desnoyers 6f27d70a72 templates/hurd: Fix quadratic algorithm for sorting menu items
The current implementation of the 10_hurd script implements its menu
items sorting in bash with a quadratic algorithm, calling "sed", "sort",
"head", and "grep" to compare versions between individual lines, which
is annoyingly slow for kernel developers who can easily end up with
50-100 kernels in their boot partition.

This fix is ported from the 10_linux script, which has a similar
quadratic code pattern.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2022-07-04 14:43:25 +02:00
..
2010-09-15 14:46:53 +02:00
2022-03-14 16:01:07 +01:00
2022-03-14 16:01:07 +01:00
2019-03-25 15:08:49 +01:00
2022-03-14 16:01:07 +01:00
2013-11-07 06:35:50 +01:00
2022-03-14 16:01:07 +01:00