summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-08-16 23:39:58 +0200
committerAlejandro Colomar <alx@kernel.org>2023-08-16 23:39:58 +0200
commitc6736d8e3c0665cc48718099cb38866d60210b33 (patch)
tree761fd6ee1c8ac5039ffd3cb9a3e60e8b200e0227 /scripts
parent40061db0c2b79abf15a04d0a4779c0adeaf01796 (diff)
scripts/sortman: Tighten regex
This avoids misinterpreting file names like .../binutils-2.17/... Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sortman2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sortman b/scripts/sortman
index 01564fdce..546a7943d 100755
--- a/scripts/sortman
+++ b/scripts/sortman
@@ -5,7 +5,7 @@
sed -E '/\/intro./ s/.*\.([[:digit:]])/\10\t&/' \
| sed -E '/\/intro./! s/.*\.([[:digit:]])\>/\11\t&/' \
-| sed -E '/\/intro./! s/.*\.([[:digit:]])([[:alnum:]]+)/\12.\2\t&/' \
+| sed -E '/\/intro./! s/.*\.([[:digit:]])([[:alpha:]][[:alnum:]]*\>)/\12.\2\t&/' \
| sed -E ' s/\t(.*)/&\n\1/' \
| sed -E '/\t/ s/\/[_-]*/\//g' \
| sed -E '/\t/ s/[_-]/_/g' \