diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:09 +0000 |
commit | 0db324e2e5d9d3347ea0e93138372fb65aac09e6 (patch) | |
tree | 1b794022fb98db123c73021e75286a82c116aa7f /scripts/sortman | |
parent | Releasing progress-linux version 6.05.01-1~progress7.99u1. (diff) | |
download | manpages-0db324e2e5d9d3347ea0e93138372fb65aac09e6.tar.xz manpages-0db324e2e5d9d3347ea0e93138372fb65aac09e6.zip |
Merging upstream version 6.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | scripts/sortman | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/sortman b/scripts/sortman new file mode 100755 index 0000000..6d1d92f --- /dev/null +++ b/scripts/sortman @@ -0,0 +1,15 @@ +#!/bin/sh + +# Copyright 2023, Alejandro Colomar <alx@kernel.org> +# SPDX-License-Identifier: GPL-3.0-or-later + +sed -E '/\/intro./ s/.*\.([[:digit:]])/\10\t&/' \ +| sed -E '/\/intro./! s/.*\.([[:digit:]])\>/\11\t&/' \ +| sed -E '/\/intro./! s/.*\.([[:digit:]])([[:alpha:]][[:alnum:]]*\>)/\12.\2\t&/' \ +| sed -E ' s/\t(.*)/&\n\1/' \ +| sed -E '/\t/ s/\.[[:digit:]]([[:alpha:]][[:alnum:]]*)?\>.*//' \ +| sed -E '/\t/ s/\/[_-]*/\//g' \ +| sed -E '/\t/ s/[_-]/ /g' \ +| sed -E '/\t/ {N;s/\n/\t/;}' \ +| sort -fV -k1,2 \ +| cut -f3; |