Description: Skip directories when processing schema files.
Author: Petr Salinger <Petr.Salinger@seznam.cz>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631469
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=653364
Index: anjuta-3.0.3.0/scripts/builder2schema.pl
===================================================================
--- anjuta-3.0.3.0.orig/scripts/builder2schema.pl	2011-06-25 00:08:08.915571261 +0200
+++ anjuta-3.0.3.0/scripts/builder2schema.pl	2011-06-25 00:58:05.109903995 +0200
@@ -23,8 +23,10 @@
 print "\t<schema id=\"$ARGV[1]\" path=\"/org/gnome/anjuta/\">\n";
 
 if ($#ARGV == 2) {
-	open FILE, "<", $ARGV[2] or die $!;
-	while (<FILE>) { print "\t\t$_"; }
+	unless (-d $ARGV[2]) {
+		open FILE, "<", $ARGV[2] or die $!;
+		while (<FILE>) { print "\t\t$_"; }
+	}
 }
 
 my $parser = new XML::Parser(Style => "Stream");
