summaryrefslogtreecommitdiff
path: root/docs-xml/scripts/indent-smb.conf.pl
diff options
context:
space:
mode:
Diffstat (limited to 'docs-xml/scripts/indent-smb.conf.pl')
-rwxr-xr-xdocs-xml/scripts/indent-smb.conf.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs-xml/scripts/indent-smb.conf.pl b/docs-xml/scripts/indent-smb.conf.pl
new file mode 100755
index 00000000000..c4c87a15112
--- /dev/null
+++ b/docs-xml/scripts/indent-smb.conf.pl
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+
+while(<STDIN>) {
+ if(/^$/) { }
+ elsif(/^([ \t]*)#(.*)/) { print "#$2\n"; }
+ elsif(/^([ \t]*)(.*) = (.*)$/) { print "\t$2 = $3\n"; }
+ elsif(/^([ \t]*)\[(.*)\]([ \t]*)$/) { print "\n[$2]\n"; }
+}