summaryrefslogtreecommitdiff
path: root/docs/docbook/scripts/strip-links.pl
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docbook/scripts/strip-links.pl')
-rw-r--r--docs/docbook/scripts/strip-links.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/docbook/scripts/strip-links.pl b/docs/docbook/scripts/strip-links.pl
new file mode 100644
index 0000000000..495822264e
--- /dev/null
+++ b/docs/docbook/scripts/strip-links.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+
+## small script to stirp the <URL:...> tags from
+## manpages generated from docbook2man. we'll leave
+## the <URL:ftp://...> and <URL:mailto:...> links for now
+
+while (<STDIN>) {
+
+ $_ =~ s/\s*<URL:.*html.*>\s*//g;
+ print "$_";
+
+}
+exit 0;