summaryrefslogtreecommitdiffstats
path: root/WebKitTools/Scripts/webkit-build-directory
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-04-27 16:23:55 +0100
committerSteve Block <steveblock@google.com>2010-04-27 17:07:03 +0100
commit692e5dbf12901edacf14812a6fae25462920af42 (patch)
treed62802373a429e0a9dc093b6046c166b2c514285 /WebKitTools/Scripts/webkit-build-directory
parente24bea4efef1c414137d36a9778aa4e142e10c7d (diff)
downloadexternal_webkit-692e5dbf12901edacf14812a6fae25462920af42.zip
external_webkit-692e5dbf12901edacf14812a6fae25462920af42.tar.gz
external_webkit-692e5dbf12901edacf14812a6fae25462920af42.tar.bz2
Merge webkit.org at r55033 : Initial merge by git
Change-Id: I98a4af828067cc243ec3dc5e5826154dd88074b5
Diffstat (limited to 'WebKitTools/Scripts/webkit-build-directory')
-rwxr-xr-xWebKitTools/Scripts/webkit-build-directory20
1 files changed, 12 insertions, 8 deletions
diff --git a/WebKitTools/Scripts/webkit-build-directory b/WebKitTools/Scripts/webkit-build-directory
index a85c587..bf7d66d 100755
--- a/WebKitTools/Scripts/webkit-build-directory
+++ b/WebKitTools/Scripts/webkit-build-directory
@@ -34,31 +34,35 @@ use Getopt::Long;
use lib $FindBin::Bin;
use webkitdirs;
-my $showBaseProductDirectory = 0;
+my $showConfigurationDirectory = 0;
my $showHelp = 0;
+my $showTopLevelDirectory = 0;
+
my $programName = basename($0);
my $usage = <<EOF;
Usage: $programName [options]
- --base Show the root build directory instead of one corresponding to the current target (e.g. Debug, Release)
- --debug Show build directory for the Debug target
- -h|--help Show this help message
- --release Show build directory for the Release target
+ --configuration Show the build directory for a specific configuration (e.g. Debug, Release. Defaults to the active configuration set by set-webkit-configuration)
+ -h|--help Show this help message
+ --top-level Show the top-level build directory
+
+Either --configuration or --top-level is required.
EOF
setConfiguration(); # Figure out from the command line if we're --debug or --release or the default.
my $getOptionsResult = GetOptions(
- 'base' => \$showBaseProductDirectory,
+ 'configuration' => \$showConfigurationDirectory,
+ 'top-level' => \$showTopLevelDirectory,
'help|h' => \$showHelp,
);
-if (!$getOptionsResult || $showHelp) {
+if (!$getOptionsResult || $showHelp || (!$showConfigurationDirectory && !$showTopLevelDirectory)) {
print STDERR $usage;
exit 1;
}
-if ($showBaseProductDirectory) {
+if ($showTopLevelDirectory) {
print baseProductDir() . "\n";
} else {
print productDir() . "\n";