summaryrefslogtreecommitdiff
path: root/docs/xslt/upgrade.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-12 22:34:38 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:19 -0500
commit9c72dd78f25be4a7ffa5af5a242670ec76930d6f (patch)
tree719cf9faacc847b400354a33bfdf5a2d2cee4ca7 /docs/xslt/upgrade.pl
parent50834aa64b51b039724b34eb491013c4323946ff (diff)
downloadsamba-9c72dd78f25be4a7ffa5af5a242670ec76930d6f.tar.gz
samba-9c72dd78f25be4a7ffa5af5a242670ec76930d6f.tar.bz2
samba-9c72dd78f25be4a7ffa5af5a242670ec76930d6f.zip
Use new definition of <smbconfoption>, fixes a bunch of
validity errors. (This used to be commit 3eb5c35e47951f320f7c2f4cd478a95f6d48236e)
Diffstat (limited to 'docs/xslt/upgrade.pl')
-rw-r--r--docs/xslt/upgrade.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/xslt/upgrade.pl b/docs/xslt/upgrade.pl
new file mode 100644
index 0000000000..8f0a82f0e7
--- /dev/null
+++ b/docs/xslt/upgrade.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+# Update documents to the Samba DTD V1.0
+
+undef $/;
+
+while(<>) {
+ s/<smbconfoption><name>(.*?)<\/name><value>(.*?)<\/value><\/smbconfoption>/<smbconfoption name=\"\1\">\2<\/smbconfoption>/g;
+ s/<smbconfoption><name>(.*?)<\/name><\/smbconfoption>/<smbconfoption name=\"\1\"\/>/g;
+ print $_;
+}