Changeset 48004 in webkit
- Timestamp:
- Sep 2, 2009 7:31:41 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r48003 r48004 1 2009-09-02 Laurent Cerveau <lcerveau@me.com> 2 3 Reviewed by David Kilzer. 4 5 <http://webkit.org/b/25517> build-webkit script should print build time at end 6 7 * Scripts/build-webkit: 8 Added startTime and endTime variable so that the build time is computed and printed as 9 part of the build message; display formatting has been separated in a dedicated subroutine. 10 1 11 2009-09-02 David Kilzer <ddkilzer@apple.com> 2 12 -
trunk/WebKitTools/Scripts/build-webkit
r47972 r48004 38 38 use POSIX; 39 39 40 sub formatBuildTime($); 41 40 42 my $originalWorkingDirectory = getcwd(); 41 43 chdirWebKit(); … … 45 47 my $minimal = 0; 46 48 my $makeArgs; 49 my $startTime = time(); 47 50 48 51 my ($threeDCanvasSupport, $threeDRenderingSupport, $channelMessagingSupport, $databaseSupport, $datagridSupport, $domStorageSupport, … … 363 366 my $launcherPath = launcherPath(); 364 367 my $launcherName = launcherName(); 368 my $endTime = time(); 369 my $buildTime = formatBuildTime($endTime - $startTime); 365 370 366 371 print "\n"; 367 372 print "===========================================================\n"; 368 print " WebKit is now built. To run $launcherName with this newly-built\n"; 369 print " code, use the \"$launcherPath\" script.\n"; 373 print " WebKit is now built ($buildTime). \n"; 374 print " To run $launcherName with this newly-built code, use the\n"; 375 print " \"$launcherPath\" script.\n"; 370 376 print "===========================================================\n"; 371 377 372 378 exit 0; 379 380 sub formatBuildTime($) 381 { 382 my ($buildTime) = @_; 383 384 my $buildHours = int($buildTime / 3600); 385 my $buildMins = int(($buildTime - $buildHours * 3600) / 60); 386 my $buildSecs = $buildTime - $buildHours * 3600 - $buildMins * 60; 387 388 if ($buildHours) { 389 return sprintf("%dh:%02dm:%02ds", $buildHours, $buildMins, $buildSecs); 390 } 391 return sprintf("%02dm:%02ds", $buildMins, $buildSecs); 392 }
Note: See TracChangeset
for help on using the changeset viewer.