[webkit-changes] cvs commit: WebKitTools/Scripts update-webkitsysteminterface

Justin justing at opensource.apple.com
Thu Sep 8 14:38:11 PDT 2005


justing     05/09/08 14:38:11

  Modified:    .        ChangeLog
  Added:       Scripts  update-webkitsysteminterface
  Log:
          Reviewed by darin
  
          * Scripts/update-webkitsysteminterface: Added.
          Builds webkitsysteminterface and moves the built product and header into WebKitLibraries
  
  Revision  Changes    Path
  1.96      +7 -0      WebKitTools/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebKitTools/ChangeLog,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- ChangeLog	1 Sep 2005 19:41:24 -0000	1.95
  +++ ChangeLog	8 Sep 2005 21:38:10 -0000	1.96
  @@ -1,3 +1,10 @@
  +2005-09-08  Justin Garcia  <justin.garcia at apple.com>
  +
  +        Reviewed by darin
  +
  +        * Scripts/update-webkitsysteminterface: Added.
  +        Builds webkitsysteminterface and moves the built product and header into WebKitLibraries
  +
   2005-09-01  John Sullivan  <sullivan at apple.com>
   
           * Scripts/run-webkit-tests:
  
  
  
  1.1                  WebKitTools/Scripts/update-webkitsysteminterface
  
  Index: update-webkitsysteminterface
  ===================================================================
  #!/usr/bin/perl -w
  
  # Copyright (C) 2005 Apple Computer, Inc.  All rights reserved.
  #
  # Redistribution and use in source and binary forms, with or without
  # modification, are permitted provided that the following conditions
  # are met:
  #
  # 1.  Redistributions of source code must retain the above copyright
  #     notice, this list of conditions and the following disclaimer. 
  # 2.  Redistributions in binary form must reproduce the above copyright
  #     notice, this list of conditions and the following disclaimer in the
  #     documentation and/or other materials provided with the distribution. 
  # 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
  #     its contributors may be used to endorse or promote products derived
  #     from this software without specific prior written permission. 
  #
  # THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
  # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  # DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
  # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  
  # Script for use at Apple to update WebKitSystemInterface.
  
  use strict;
  use FindBin;
  use lib $FindBin::Bin;
  use webkitdirs;
  
  setConfiguration();
  chdirWebKit();
  my $productDir = productDir();
  my @options = XcodeOptions();
  
  # Build.
  chdir "WebKitSystemInterface" or die;
  my $result = system "xcodebuild", "-project", "WebKitSystemInterface.xcodeproj", @options;
  exit $result if $result;
  chdir ".." or die;
  
  # Copy library and header.
  my $srcLib = "$productDir/libWebKitSystemInterface.a";
  my $lib = "WebKitLibraries/libWebKitSystemInterface.a";
  if (!-e $lib || -M $lib > -M $srcLib) {
      print "Updating $lib\n";
      system "ditto", $srcLib, $lib;
  }
  my $srcHeader = "WebKitSystemInterface/WebKitSystemInterface.h";
  my $header = "WebKitLibraries/WebKitSystemInterface.h";
  if (!-e $header || -M $header > -M $srcHeader) {
      print "Updating $header\n";
      system "ditto", $srcHeader, $header;
  }
  
  
  



More information about the webkit-changes mailing list