2012-02-08 Gustavo Noronha Silva <gns@gnome.org>
+ Rubber-stamped by Martin Robinson.
+
+ * gtk/common.py:
+ (get_build_path): Move test for current directory being a valid
+ directory up so it takes precedence over WebKitBuild/Release and
+ WebKitBuild/Debug when they exist as well.
+
+2012-02-08 Gustavo Noronha Silva <gns@gnome.org>
+
[GTK] doc rebasing does not respect DESTDIR
https://bugs.webkit.org/show_bug.cgi?id=78177
def is_valid_build_directory(path):
return os.path.exists(os.path.join(path, 'GNUmakefile'))
+ # Debian and Ubuntu build both flavours of the library (with gtk2
+ # and with gtk3); they use directories build-2.0 and build-3.0 for
+ # that, which is not handled by the above cases; we check that the
+ # directory where we are called from is a valid build directory,
+ # which should handle pretty much all other non-standard cases.
+ build_dir = os.getcwd()
+ if is_valid_build_directory(build_dir):
+ return build_dir
+
build_types = ['Release', 'Debug']
if '--debug' in sys.argv:
build_types.reverse()
if is_valid_build_directory(build_dir):
return build_dir
- # Debian and Ubuntu build both flavours of the library (with gtk2
- # and with gtk3); they use directories build-2.0 and build-3.0 for
- # that, which is not handled by the above cases; we check that the
- # directory where we are called from is a valid build directory,
- # which should handle pretty much all other non-standard cases.
- build_dir = os.getcwd()
- if is_valid_build_directory(build_dir):
- return build_dir
-
print 'Could not determine build directory.'
sys.exit(1)