Skip to content

Instantly share code, notes, and snippets.

@passcod

passcod/libwww.diff

Forked from anonymous/-
Last active Dec 21, 2015
Embed
What would you like to do?
Patches for LineMode (see http://cern.ch/first-website)
diff --git a/Library/src/Makefile.am b/Library/src/Makefile.am
index be1857d..5139eca 100644
--- a/Library/src/Makefile.am
+++ b/Library/src/Makefile.am
@@ -405,7 +405,6 @@ BUILT_SOURCES = \
HTAtom.h \
HTBInit.h \
HTBTree.h \
- HTBind.h \
HTBind.h \
HTBound.h \
HTBufWrt.h \
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.\n";
+ 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