]> git.ipfire.org Git - thirdparty/man-pages.git/blame - scripts/remove_COLOPHON.sh
mdoc.7: wfix
[thirdparty/man-pages.git] / scripts / remove_COLOPHON.sh
CommitLineData
bdb507e4
MK
1#!/bin/sh
2#
3# remove_COLOPHON.sh
4#
5# Remove the COLOPHON section from the man pages provided as
6# command-line arguments. (This is useful to remove the COLOPHON
7# sections from all of the man pages in two different release trees
8# in order to do a "diff -ruN" to see the "real" differences between
9# the trees.)
10#
404b6a03
MK
11######################################################################
12#
13# (C) Copyright 2008 & 2013, Michael Kerrisk
14# This program is free software; you can redistribute it and/or
15# modify it under the terms of the GNU General Public License
16# as published by the Free Software Foundation; either version 2
17# of the License, or (at your option) any later version.
18#
19# This program is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details
23# (http://www.gnu.org/licenses/gpl-2.0.html).
24#
25#
bdb507e4
MK
26for f in "$@"; do
27 sed -i '/^\.SH COLOPHON/,$d' "$f"
28done