Skip to content

Instantly share code, notes, and snippets.

/-

Created Aug 23, 2013
Embed
What would you like to do?
diff --git a/config/winConfigure.pl b/config/winConfigure.pl
index 0c8d5d6..80cd76f 100755
--- a/config/winConfigure.pl
+++ b/config/winConfigure.pl
@@ -18,7 +18,10 @@ sub parseMakefile {
my $defs = shift;
my $file = $dir.'/Makefile.am';
local *FILE;
- open(FILE, "< $file") || die "can't open \"$file\": $!";
+ if (!open(FILE, "< $file")) {
+ print $dir.'/Makefile.am not found, skipping';
+ return 42;
+ }
my $continuation = ''; # lines ending in a \\
while (<FILE>) {
my $line = $_;
@@ -66,7 +69,9 @@ sub checkDir {
my $dir = shift;
my (%DEFS);
my (%DEPENDENTS, %VERBS);
- &parseMakefile($dir, \%DEFS);
+ if (&parseMakefile($dir, \%DEFS) == 42) {
+ return;
+ }
my @subdirs = @{$DEFS{'SUBDIRS'}};
my @builtSources = @{$DEFS{'BUILT_SOURCES'}};
my $built;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment