[anjuta/gsettings-migration: 35/65] scripts: Improved schema generation



commit 6cde6ea9616c550c9bc4702e4896deb02b525bd8
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Oct 9 10:35:46 2010 +0200

    scripts: Improved schema generation

 scripts/builder2schema.pl |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/scripts/builder2schema.pl b/scripts/builder2schema.pl
index 20dc4df..0d9c4df 100755
--- a/scripts/builder2schema.pl
+++ b/scripts/builder2schema.pl
@@ -30,9 +30,11 @@ if ($#ARGV == 2) {
 my $parser = new XML::Parser(Style => "Stream");
 $parser->parsefile($ARGV[0]);
 
-my %keys = {};
+print "\t</schema>\n";
+print "</schemalist>";
 
 sub StartTag {
+	my %keys = {};
 	my $parser = shift;
 	my $key = shift;
 	if ($key =~ /object/) {
@@ -82,7 +84,4 @@ sub StartTag {
 
 sub EndTag {}
 
-sub Text {}
-
-print "\t</schema>\n";
-print "</schemalist>";
\ No newline at end of file
+sub Text {}
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]