[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1353-g9f05d2e

Günther Deschner gd at samba.org
Tue Jan 15 09:35:32 GMT 2008


The branch, v3-2-test has been updated
       via  9f05d2eae7c55d39ad61da54c4a38d6b6f8d4d3a (commit)
      from  ef9b278b6289a9ecdd6b103927058f64fbb7eb97 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 9f05d2eae7c55d39ad61da54c4a38d6b6f8d4d3a
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jan 15 10:33:25 2008 +0100

    Add True/False bool cleanup script.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/script/fix_bool.pl |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100755 source/script/fix_bool.pl


Changeset truncated at 500 lines:

diff --git a/source/script/fix_bool.pl b/source/script/fix_bool.pl
new file mode 100755
index 0000000..c09645d
--- /dev/null
+++ b/source/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);
+
+


-- 
Samba Shared Repository


More information about the samba-cvs mailing list