diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-08-13 13:08:51 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-08-13 13:16:07 +0200 |
commit | 2e1694334944ca790b5e0314e3d75d6cf04e32b3 (patch) | |
tree | ca8e1dee6b8612b3c4c68c74235bda46025437b5 /scripts | |
parent | a8697ccd5a699f5ad6f446b65266600e7de55a8a (diff) |
scripts/sortman: Support pages with suffixes (not subsections)
Some projects have pages with suffixes like '.man' or '.in'. Don't
misinterpret those as subsections. Pages with subsections should match
the following regex: '\.[[:digit:]][[:alnum:]]\>'.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/sortman | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sortman b/scripts/sortman index 58354567c..030e647e7 100755 --- a/scripts/sortman +++ b/scripts/sortman @@ -5,8 +5,8 @@ export LC_COLLATE=en_US.UTF-8; -sed -E '/\/intro./ s/.*\.([1-8])$/\10\t&/' \ -| sed -E '/\/intro./!s/.*\.([1-8])$/\11\t&/' \ -| sed -E '/\/intro./!s/.*\.([1-8].+)/\1\t&/' \ +sed -E '/\/intro./ s/.*\.([1-8])/\10\t&/' \ +| sed -E '/\/intro./!s/.*\.([1-8])\>/\11\t&/' \ +| sed -E '/\/intro./!s/.*\.([1-8][[:alnum:]]+)/\1\t&/' \ | sort \ | cut -f2; |