repo.or.cz
/
Samba
/
ita.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s3: Move check_access to cgi.c, its only user
[Samba/ita.git]
/
docs-xml
/
scripts
/
indent-smb.conf.pl
blob
c4c87a151126d133e40b20bf78f7694f93ae6ff3
1
#!/usr/bin/perl
2
3
while
(<
STDIN
>) {
4
if
(
/^$/
) { }
5
elsif
(
/^([ \t]*)#(.*)/
) {
print
"#
$2
\n
"
; }
6
elsif
(
/^([ \t]*)(.*) = (.*)$/
) {
print
"
\t
$2
=
$3
\n
"
; }
7
elsif
(
/^([ \t]*)\[(.*)\]([ \t]*)$/
) {
print
"
\n
[
$2
]
\n
"
; }
8
}