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
11 ######################################################################
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.
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).
27 sed -i '/^\.SH COLOPHON/,$d' "$f"