Title: [174317] trunk/Tools
- Revision
- 174317
- Author
- [email protected]
- Date
- 2014-10-04 03:04:47 -0700 (Sat, 04 Oct 2014)
Log Message
[jhbuild] Simplify platform detection in update-webkit-libs-jhbuild
https://bugs.webkit.org/show_bug.cgi?id=137390
Reviewed by Carlos Garcia Campos.
* Scripts/update-webkit-libs-jhbuild:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (174316 => 174317)
--- trunk/Tools/ChangeLog 2014-10-04 09:07:36 UTC (rev 174316)
+++ trunk/Tools/ChangeLog 2014-10-04 10:04:47 UTC (rev 174317)
@@ -1,3 +1,12 @@
+2014-10-04 Csaba Osztrogonác <[email protected]>
+
+ [jhbuild] Simplify platform detection in update-webkit-libs-jhbuild
+ https://bugs.webkit.org/show_bug.cgi?id=137390
+
+ Reviewed by Carlos Garcia Campos.
+
+ * Scripts/update-webkit-libs-jhbuild:
+
2014-10-04 Carlos Garcia Campos <[email protected]>
[GTK] Do not generate webkit2gtk-tests-resources.gresource unconditionally
Modified: trunk/Tools/Scripts/update-webkit-libs-jhbuild (174316 => 174317)
--- trunk/Tools/Scripts/update-webkit-libs-jhbuild 2014-10-04 09:07:36 UTC (rev 174316)
+++ trunk/Tools/Scripts/update-webkit-libs-jhbuild 2014-10-04 10:04:47 UTC (rev 174317)
@@ -22,24 +22,12 @@
use webkitdirs;
use Getopt::Long qw(:config pass_through);
-my $platformEfl = 0;
-my $platformGtk = 0;
-
-my $getOptionsResult = GetOptions(
- 'efl' => \$platformEfl,
- 'gtk' => \$platformGtk,
- );
-
my $platform = "";
-if (!$getOptionsResult) {
+$platform = "efl" if isEfl();
+$platform = "gtk" if isGtk();
+
+if (!$platform) {
die "No platform specified for " . basename($0) .". Use --gtk or --efl.\n";
-} else {
- if ($platformEfl) {
- $platform = "efl";
- }
- if ($platformGtk) {
- $platform = "gtk";
- }
}
sub getMD5HashForFile($)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes