1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/docs/scripts/indent-smb.conf.pl
Jelmer Vernooij 992f1e6b8f Add all the source files from the old CVS tree,
add the 5 missing chapters from the HOWTO
and add jht's Samba by Example book.
(This used to be commit 9fb5bcb93e)
2008-04-23 08:45:43 -05:00

9 lines
210 B
Perl
Executable File

#!/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"; }
}