summaryrefslogtreecommitdiffstats
path: root/docs/docbook/scripts
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-04-19 21:43:29 +0000
committerGerald Carter <jerry@samba.org>2001-04-19 21:43:29 +0000
commit6b38c1cb253c2918f2d57b8540c32d9e5bf9bb02 (patch)
tree81345359adb4b5966a64ae0097a72d23e4a20156 /docs/docbook/scripts
parent6270765ed5d4e94d34af6d512f17f403b9624699 (diff)
downloadsamba-6b38c1cb253c2918f2d57b8540c32d9e5bf9bb02.tar.gz
samba-6b38c1cb253c2918f2d57b8540c32d9e5bf9bb02.tar.xz
samba-6b38c1cb253c2918f2d57b8540c32d9e5bf9bb02.zip
merge
Diffstat (limited to 'docs/docbook/scripts')
-rw-r--r--docs/docbook/scripts/make-article.pl25
-rw-r--r--docs/docbook/scripts/strip-links.pl13
2 files changed, 38 insertions, 0 deletions
diff --git a/docs/docbook/scripts/make-article.pl b/docs/docbook/scripts/make-article.pl
new file mode 100644
index 00000000000..d1f8c668326
--- /dev/null
+++ b/docs/docbook/scripts/make-article.pl
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+
+$ignore = 0;
+
+print "<!DOCTYPE article PUBLIC \"-//OASIS//DTD DocBook V4.1//EN\">\n";
+
+while (<STDIN>) {
+
+ $_ =~ s/<chapter/<article/g;
+ $_ =~ s/<\/chapter/<\/article/g;
+
+ if ( $_ =~ '<articleinfo>') {
+ $ignore = 1;
+ }
+
+ if ( $_ =~ '</articleinfo>') {
+ $ignore = 0;
+ $_ = "";
+ }
+
+
+ if (! $ignore) { print "$_"; }
+
+
+}
diff --git a/docs/docbook/scripts/strip-links.pl b/docs/docbook/scripts/strip-links.pl
new file mode 100644
index 00000000000..495822264ec
--- /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;