diff options
Diffstat (limited to 'docs/xslt/upgrade.pl')
-rw-r--r-- | docs/xslt/upgrade.pl | 10 |
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 $_; +} |