s3-waf: create a smbldap.so library.
[Samba/id10ts.git] / source3 / script / fix_bool.pl
blobc09645de7c07c918614327e8d7a8772a199cc261
1 #!/usr/bin/perl -w
3 open(INFILE, "$ARGV[0]") || die $@;
4 open(OUTFILE, ">$ARGV[0].new") || die $@;
6 while (<INFILE>) {
7 $_ =~ s/True/true/;
8 $_ =~ s/False/false/;
9 print OUTFILE "$_";
12 close(INFILE);
13 close(OUTFILE);
15 rename("$ARGV[0].new", "$ARGV[0]") || die @_;
17 exit(0);