From: bdash Date: Sun, 8 Oct 2006 22:45:34 +0000 (+0000) Subject: 2006-10-08 Nikolas Zimmermann X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=b05ca84f3c4a088b73d48d5da95209046ae8e95b 2006-10-08 Nikolas Zimmermann Reviewed by Darin. Kill warnings when generating IDL files on Qt/Linux, as the SOURCE_ROOT environment variable is not defined (and not needed) for us. * bindings/scripts/CodeGenerator.pm: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16896 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index 18fa5836bb5f..7dcf53444743 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,12 @@ +2006-10-08 Nikolas Zimmermann + + Reviewed by Darin. + + Kill warnings when generating IDL files on Qt/Linux, as the + SOURCE_ROOT environment variable is not defined (and not needed) for us. + + * bindings/scripts/CodeGenerator.pm: + 2006-10-08 Maciej Stachowiak Reviewed by Darin. diff --git a/WebCore/bindings/scripts/CodeGenerator.pm b/WebCore/bindings/scripts/CodeGenerator.pm index 90c28be8543a..ec3297f47782 100644 --- a/WebCore/bindings/scripts/CodeGenerator.pm +++ b/WebCore/bindings/scripts/CodeGenerator.pm @@ -201,7 +201,9 @@ sub ScanDirectory return if ($endCondition eq 1) and ($reportAllFiles eq 0); - $thisDir = "$ENV{SOURCE_ROOT}/$directory"; + my $sourceRoot = $ENV{SOURCE_ROOT} || ""; + $thisDir = "$sourceRoot/$directory"; + opendir(DIR, $thisDir) or die "[ERROR] Can't open directory $thisDir: \"$!\"\n"; my @names = readdir(DIR) or die "[ERROR] Cant't read directory $thisDir \"$!\"\n";