Blame scripts/remove_COLOPHON.sh

Packit 7cfc04
#!/bin/sh
Packit 7cfc04
#
Packit 7cfc04
# remove_COLOPHON.sh
Packit 7cfc04
#
Packit 7cfc04
# Remove the COLOPHON section from the man pages provided as
Packit 7cfc04
# command-line arguments.  (This is useful to remove the COLOPHON
Packit 7cfc04
# sections from all of the man pages in two different release trees
Packit 7cfc04
# in order to do a "diff -ruN" to see the "real" differences between
Packit 7cfc04
# the trees.)
Packit 7cfc04
#
Packit 7cfc04
######################################################################
Packit 7cfc04
#
Packit 7cfc04
# (C) Copyright 2008 & 2013, Michael Kerrisk
Packit 7cfc04
# This program is free software; you can redistribute it and/or
Packit 7cfc04
# modify it under the terms of the GNU General Public License
Packit 7cfc04
# as published by the Free Software Foundation; either version 2
Packit 7cfc04
# of the License, or (at your option) any later version.
Packit 7cfc04
# 
Packit 7cfc04
# This program is distributed in the hope that it will be useful,
Packit 7cfc04
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 7cfc04
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 7cfc04
# GNU General Public License for more details
Packit 7cfc04
# (http://www.gnu.org/licenses/gpl-2.0.html).
Packit 7cfc04
#
Packit 7cfc04
#
Packit 7cfc04
for f in "$@"; do
Packit 7cfc04
    sed -i '/^\.SH COLOPHON/,$d' "$f"
Packit 7cfc04
done