summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-01-13 08:32:15 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-01-13 08:32:15 +0000
commitbdb507e4ca5163ea2e73f4d779a0acff4f362f39 (patch)
tree1074995dd7809d3f0b51497046c5ceab434867af /scripts
parenta0d39abb92aeaa61446a69b6ccc8ce22032acafa (diff)
Script to 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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/remove_COLOPHON.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/remove_COLOPHON.sh b/scripts/remove_COLOPHON.sh
new file mode 100644
index 00000000..0f56d203
--- /dev/null
+++ b/scripts/remove_COLOPHON.sh
@@ -0,0 +1,13 @@
+#!/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.)
+#
+for f in "$@"; do
+ sed -i '/^\.SH COLOPHON/,$d' "$f"
+done