]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
src/bin/sortman, sortman.1, share/mk/: Move sortman script to src/bin/, and add manua...
authorAlejandro Colomar <alx@kernel.org>
Mon, 25 Nov 2024 15:03:34 +0000 (16:03 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 26 Nov 2024 10:22:48 +0000 (11:22 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man1/sortman.1 [new file with mode: 0644]
share/mk/src/sortman.mk
src/bin/sortman [moved from scripts/sortman with 99% similarity]

diff --git a/man/man1/sortman.1 b/man/man1/sortman.1
new file mode 100644 (file)
index 0000000..63edd83
--- /dev/null
@@ -0,0 +1,29 @@
+.\" Copyright 2024, Alejandro Colomar <alx@kernel.org>
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH sortman 1 (date) "Linux man-pages (unreleased)"
+.SH NAME
+sortman
+\-
+sort manual-page path names
+.SH SYNOPSIS
+.SY sortman
+.YS
+.SH DESCRIPTION
+The
+.B sortman
+command sorts manual-page path names
+in the order that they should appear in the manual.
+.P
+The chapters and subchapters are first sorted.
+Then, within each (sub)chapter,
+the first page is the corresponding
+.BR intro (*)
+page,
+and the rest are sorted alphabetically
+(but treating specially some special characters).
+.SH SEE ALSO
+.BR intro (1),
+.BR man (1),
+.BR sort (1)
index 730274bf696adaa9703b31c9bba55e12d06521e6..5348db905d2ce7f6756f33dcbc2bce03c6de35d1 100644 (file)
@@ -6,7 +6,10 @@ ifndef MAKEFILE_SRC_SORTMAN_INCLUDED
 MAKEFILE_SRC_SORTMAN_INCLUDED := 1
 
 
-SORTMAN := $(CURDIR)/scripts/sortman
+include $(MAKEFILEDIR)/configure/directory_variables/src.mk
+
+
+SORTMAN := $(SRCBINDIR)/sortman
 
 
 endif  # include guard
similarity index 99%
rename from scripts/sortman
rename to src/bin/sortman
index 6d1d92f09fdc9b9d00044150820512f50002b1d2..cf210c2dc05f07d5f8b64dd9e88c39d8782f48f9 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-
+#
 # Copyright 2023, Alejandro Colomar <alx@kernel.org>
 # SPDX-License-Identifier: GPL-3.0-or-later