Commit bf86c2ca authored by darin's avatar darin

- created module, first cut at Web Kit Open Source Project scripts

        * ChangeLog: Added.
        * Scripts/build-webkit: Added.
        * Scripts/run-safari: Added.
        * Scripts/update-webkit: Added.
        * checkout: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 49d329bf
2005-06-05 Darin Adler <darin@apple.com>
- created module, first cut at Web Kit Open Source Project scripts
* ChangeLog: Added.
* Scripts/build-webkit: Added.
* Scripts/run-safari: Added.
* Scripts/update-webkit: Added.
* checkout: Added.
#!/usr/bin/perl -w
# Simplified build script for Web Kit Open Source Project.
use strict;
use Getopt::Long;
my $debug = 0;
GetOptions("debug!" => \$debug);
my $style = $debug ? "Development" : "Deployment";
# Check that we're in the right directory.
if (! -d "WebKitTools") {
if (-d "../WebKitTools") {
chdir ".." or die;
}
if (! -d "WebKitTools") {
die "No WebKitTools directory found. Please run this script from the directory containing WebKitTools.\n";
}
}
# Check that an Xcode product directory is set.
open PRODUCT, "defaults read com.apple.Xcode PBXProductDirectory 2> /dev/null |" or die;
my $productDir = <PRODUCT>;
close PRODUCT;
if (!$productDir) {
die "No product directory set. Please set the 'Place Build Products' preference to 'Customized location' in XCode Building Preferences.\n";
}
# Check that all the project directories are there.
my @projects = ("JavaScriptCore", "WebCore", "WebKit");
my @otherDirs = ("WebKitLibraries");
for my $dir (@projects, @otherDirs) {
if (! -d $dir) {
die "No $dir directory found. Can't build\n";
}
}
# Build, and abort if the build fails.
for my $dir (@projects) {
chdir $dir or die;
my $result = system "xcodebuild", "-buildstyle", $style;
exit $result if $result;
chdir ".." or die;
}
# Write out congratulations message.
print "\n";
print "===========================================================\n";
print " Web Kit is now built. To run Safari with this newly-built\n";
print " code, use the run-safari script.\n";
print "===========================================================\n";
#!/usr/bin/perl -w
# Simplified build script for Web Kit Open Source Project.
use strict;
use Getopt::Long;
my $debug = 0;
GetOptions("debug!" => \$debug);
# Check that an Xcode product directory is set.
open PRODUCT, "defaults read com.apple.Xcode PBXProductDirectory 2> /dev/null |" or die;
my $productDir = <PRODUCT>;
chomp $productDir;
close PRODUCT;
if (!$productDir) {
die "No product directory set. Please set the 'Place Build Products' preference to 'Customized location' in XCode Building Preferences.\n";
}
# Set up DYLD_FRAMEWORK_PATH to point to the product directory.
print "Start Safari with DYLD_FRAMEWORK_PATH set to point to built WebKit in $productDir.\n";
$ENV{DYLD_FRAMEWORK_PATH} = $productDir;
exec "/Applications/Safari.app/MacOS/Contents/Safari" or die;
#!/usr/bin/perl -w
# Update script for Web Kit Open Source Project.
use strict;
# Check that we're in the right directory.
if (! -d "WebKitTools") {
if (-d "../WebKitTools") {
chdir ".." or die;
}
if (! -d "WebKitTools") {
die "No WebKitTools directory found. Please run this script from the directory containing WebKitTools.\n";
}
}
# Read the CVS root out of one project that's guaranteed to already be checked out.
open ROOT, "WebKitTools/CVS/Root" or die;
my $root = <ROOT>;
chomp $root;
close ROOT;
# Check out all the sources.
print "CVS root is $root\n";
print "Updating WebKitTools, JavaScriptCore, WebCore, WebKitLibraries, and WebKit\n";
open CVS, "cvs -d '$root' co -P WebKitTools JavaScriptCore WebCore WebKitLibraries WebKit |" or die;
while (<CVS>) {
print;
}
close CVS;
#!/usr/bin/perl -w
# First time check-out script for Web Kit Open Source Project.
use strict;
# Check that we're in the right directory.
if (! -d "WebKitTools") {
if (-d "../WebKitTools") {
chdir ".." or die;
}
if (! -d "WebKitTools") {
die "No WebKitTools directory found. Please run this script from the directory containing WebKitTools.\n";
}
}
# Read the CVS root out of the project that's already checked out.
open ROOT, "WebKitTools/CVS/Root" or die;
my $root = <ROOT>;
chomp $root;
close ROOT;
# Check out all the sources.
print "CVS root is $root\n";
print "Checking out WebKitTools (again), JavaScriptCore, WebCore, WebKitLibraries, and WebKit\n";
open CVS, "cvs -d '$root' co -P WebKitTools JavaScriptCore WebCore WebKitLibraries WebKit |" or die;
while (<CVS>) {
print;
}
close CVS;
# Ready to build.
print "\n";
print "===============================================================\n";
print " Web Kit sources are now checked out and ready to build.\n";
print " You can build by projects in Xcode or with the build-webkit\n";
print " script. The build-webkit script is inside WebKitTools/Scripts\n";
print " along with other useful scripts; it's a good idea to put that\n";
print " directory into your shell's search path.\n";
print "===============================================================\n";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment