From c6759d9721af06db25b9b2965b4e17ad2e9aa0fb Mon Sep 17 00:00:00 2001 From: "commit-queue@webkit.org" Date: Wed, 8 Feb 2012 17:31:44 +0000 Subject: [PATCH] [GTK] Fails to build docs with non-standard build directories https://bugs.webkit.org/show_bug.cgi?id=78118 Patch by Gustavo Noronha Silva on 2012-02-08 Reviewed by Martin Robinson. * gtk/common.py: (get_build_path): also try the current directory as a valid build dir, which makes non-standard build directories such as build-2.0 and build-3.0 work git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107098 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Tools/ChangeLog | 12 ++++++++++++ Tools/gtk/common.py | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/Tools/ChangeLog b/Tools/ChangeLog index 7046506..e2ffca7 100644 --- a/Tools/ChangeLog +++ b/Tools/ChangeLog @@ -1,3 +1,15 @@ +2012-02-08 Gustavo Noronha Silva + + [GTK] Fails to build docs with non-standard build directories + https://bugs.webkit.org/show_bug.cgi?id=78118 + + Reviewed by Martin Robinson. + + * gtk/common.py: + (get_build_path): also try the current directory as a valid build + dir, which makes non-standard build directories such as build-2.0 + and build-3.0 work + 2012-02-08 Carlos Garcia Campos [GTK] Open links in a new window when clicking with the middle button in MiniBrowser diff --git a/Tools/gtk/common.py b/Tools/gtk/common.py index 88ca7fc..f8c47b6 100644 --- a/Tools/gtk/common.py +++ b/Tools/gtk/common.py @@ -64,6 +64,10 @@ def get_build_path(): if is_valid_build_directory(build_dir): return build_dir + build_dir = os.getcwd() + if is_valid_build_directory(build_dir): + return build_dir + print 'Could not determine build directory.' sys.exit(1) -- 2.7.4