summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-08-13 13:14:44 +0200
committerAlejandro Colomar <alx@kernel.org>2023-08-13 13:16:50 +0200
commit597b2ff6acda7df0266c1bff9f5532a5adb31302 (patch)
tree281fcb4446f287d729c61279342dcb825c0d7d9d /scripts
parent2e1694334944ca790b5e0314e3d75d6cf04e32b3 (diff)
scripts/sortman: Support pages in sections 0 and 9
Our project doesn't have them, but others do. Remove that arbitrary limitation. Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sortman6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sortman b/scripts/sortman
index 030e647e7..f0926f215 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][[:alnum:]]+)/\1\t&/' \
+sed -E '/\/intro./ s/.*\.([[:digit:]])/\10\t&/' \
+| sed -E '/\/intro./!s/.*\.([[:digit:]])\>/\11\t&/' \
+| sed -E '/\/intro./!s/.*\.([[:digit:]][[:alnum:]]+)/\1\t&/' \
| sort \
| cut -f2;