summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-08-24 17:37:35 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-08-24 17:38:42 +0200
commit8c3052b0322580eba62de91f04ba657f7dfe360e (patch)
tree4d2fc1bc475a888babcb6e3a7e38330602209e00
parentcdbf35fff3f3b2ac28fa951626fa880d133e5807 (diff)
append_COLOPHON.sh, remove_COLOPHON.sh: Remove COLOPHON section.
Users should use their distribution's standard tools to know where a given page comes from and to know how to report a bug. That'll create a small barrier to bug reporters, but that'll hopefully help improve the quality of the reports. It'll also make the pages cleaner, by removing stuff that is obvious to those who know how to use their tools. We still keep part of the information of the COLOPHON, specifically the project name and the version, in the .TH line. Reported-by: Ingo Schwarze <schwarze@openbsd.org> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rwxr-xr-xscripts/append_COLOPHON.sh38
-rwxr-xr-xscripts/remove_COLOPHON.sh28
2 files changed, 0 insertions, 66 deletions
diff --git a/scripts/append_COLOPHON.sh b/scripts/append_COLOPHON.sh
deleted file mode 100755
index f277b997f..000000000
--- a/scripts/append_COLOPHON.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-#
-# append_COLOPHON.sh
-#
-# Append the COLOPHON section to the man pages. This script should be
-# run before running `make dist`.
-#
-########################################################################
-# SPDX-License-Identifier: GPL-2.0-only
-########################################################################
-#
-# (C) Copyright 2022, Alejandro Colomar
-# These functions are free software; you can redistribute them and/or
-# modify them under the terms of the GNU General Public License
-# as published by the Free Software Foundation; version 2.
-#
-# These functions are distributed in the hope that they will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-# (http://www.gnu.org/licenses/gpl-2.0.html).
-#
-########################################################################
-find man?/ -not -type d \
-|xargs sed -i "\$a \\
-.SH COLOPHON\\
-This page is part of release\\
-$(git describe | sed 's/^man-pages-//')\\
-of the Linux\\
-.I man-pages\\
-project.\\
-A description of the project,\\
-information about reporting bugs,\\
-and the latest version of this page,\\
-can be found at\\
-.UR https://www.kernel.org/doc/man-pages/\\
-.UE .
-"
diff --git a/scripts/remove_COLOPHON.sh b/scripts/remove_COLOPHON.sh
deleted file mode 100755
index b044b216a..000000000
--- a/scripts/remove_COLOPHON.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#
-# remove_COLOPHON.sh
-#
-# Remove the COLOPHON section from the man pages provided as
-# command-line arguments. (This is useful to remove the COLOPHON
-# sections from all of the man pages in two different release trees
-# in order to do a "diff -ruN" to see the "real" differences between
-# the trees.)
-#
-######################################################################
-#
-# (C) Copyright 2008 & 2013, Michael Kerrisk
-# and (C) Copyright 2022, Alejandro Colomar <alx.manpages@gmail.com>
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-# (http://www.gnu.org/licenses/gpl-2.0.html).
-#
-#
-find "$@" -not -type d \
-|xargs sed -i '/^.SH COLOPHON/,$d';