aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
authorAlejandro Colomar <alx@kernel.org>2024-11-25 16:03:34 +0100
committerAlejandro Colomar <alx@kernel.org>2024-11-26 11:22:48 +0100
commit9120ee1c8e34af49a26c505cc5c0b28c750ad999 (patch)
treea6511569c0016591f51a97a89d41c6c4fca21608 /scripts
parenteeea7a3f472dc11188c687e53ed0c3e8a33e64a3 (diff)
downloadman-pages-9120ee1c8e34af49a26c505cc5c0b28c750ad999.tar.gz
src/bin/sortman, sortman.1, share/mk/: Move sortman script to src/bin/, and add manual page
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sortman15
1 files changed, 0 insertions, 15 deletions
diff --git a/scripts/sortman b/scripts/sortman
deleted file mode 100755
index 6d1d92f09f..0000000000
--- a/scripts/sortman
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/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;