git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7582b5
)
Add True/False bool cleanup script.
author
Günther Deschner
<gd@samba.org>
Tue, 15 Jan 2008 09:33:25 +0000
(10:33 +0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 15 Jan 2008 09:35:10 +0000
(10:35 +0100)
Guenther
(This used to be commit
9f05d2eae7c55d39ad61da54c4a38d6b6f8d4d3a
)
source3/script/fix_bool.pl
[new file with mode: 0755]
patch
|
blob
diff --git a/source3/script/fix_bool.pl
b/source3/script/fix_bool.pl
new file mode 100755
(executable)
index 0000000..
c09645d
--- /dev/null
+++ b/
source3/script/fix_bool.pl
@@ -0,0
+1,19
@@
+#!/usr/bin/perl -w
+
+open(INFILE, "$ARGV[0]") || die $@;
+open(OUTFILE, ">$ARGV[0].new") || die $@;
+
+while (<INFILE>) {
+ $_ =~ s/True/true/;
+ $_ =~ s/False/false/;
+ print OUTFILE "$_";
+}
+
+close(INFILE);
+close(OUTFILE);
+
+rename("$ARGV[0].new", "$ARGV[0]") || die @_;
+
+exit(0);
+
+