From 54a7aa1116f4cb2f72da959d6b6159097ab214e0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 29 Aug 2009 20:01:32 -0700 Subject: [PATCH 1/3] startbuild should use new build invocation now. --- tools/buildbot/bootstrap.pl | 5 +++-- tools/buildbot/startbuild.pl | 26 +++++++++++--------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/tools/buildbot/bootstrap.pl b/tools/buildbot/bootstrap.pl index f4a86256..a7d3dcfa 100755 --- a/tools/buildbot/bootstrap.pl +++ b/tools/buildbot/bootstrap.pl @@ -51,8 +51,6 @@ if ($reconf) { print "$result\n"; if ($? == -1) { die('Could not configure!'); - } elsif ($? >> 8 != 0) { - die('Could not configure!'); } } @@ -68,3 +66,6 @@ sub IsNewer return $mtime > $time; } +exit(0); + + diff --git a/tools/buildbot/startbuild.pl b/tools/buildbot/startbuild.pl index 924e1c93..cde85c68 100755 --- a/tools/buildbot/startbuild.pl +++ b/tools/buildbot/startbuild.pl @@ -1,4 +1,5 @@ #!/usr/bin/perl +# vim: set ts=2 sw=2 tw=99 noet: use File::Basename; @@ -7,33 +8,28 @@ chdir($path); require 'helpers.pm'; -chdir('..'); -chdir('..'); +chdir('../../OUTPUT'); -my ($cmd, $output); - -$cmd = Build::PathFormat('tools/builder/builder.exe') . ' build.cfg'; # 2>&1'; - -if ($^O eq "linux") -{ - $cmd = 'mono ' . $cmd; +if ($^O eq "linux") { + system("python3.1 build.py"); +} else { + system("C:\\Python31\\python.exe build.py"); } -system($cmd); - if ($? == -1) { - die "Build failed: $!\n"; + die "Build failed: $!\n"; } elsif ($^O eq "linux" and $? & 127) { - die "Build died :(\n"; + die "Build died :(\n"; } elsif ($? >> 8 != 0) { - die "Build failed with exit code: " . ($? >> 8) . "\n"; + die "Build failed with exit code: " . ($? >> 8) . "\n"; } else { - exit(0); + exit(0); } + From e94234ae738363d4cf1217c8dc7b7616904e70e8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 29 Aug 2009 20:10:19 -0700 Subject: [PATCH 2/3] Builds now occur above source folder. --- tools/buildbot/bootstrap.pl | 11 ++++++----- tools/buildbot/startbuild.pl | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/buildbot/bootstrap.pl b/tools/buildbot/bootstrap.pl index a7d3dcfa..91be959a 100755 --- a/tools/buildbot/bootstrap.pl +++ b/tools/buildbot/bootstrap.pl @@ -10,8 +10,8 @@ chdir($path); require 'helpers.pm'; -#Go back to main source dir. -chdir(Build::PathFormat('../..')); +#Go back above build dir +chdir(Build::PathFormat('../../..')); #Get the source path. our ($root) = getcwd(); @@ -26,7 +26,7 @@ if (!(-d 'OUTPUT')) { if (-d 'OUTPUT/sentinel') { my @s = stat('OUTPUT/sentinel'); my $mtime = $s[9]; - my @files = ('pushbuild.txt', 'AMBuildScript', 'product.version'); + my @files = ('build/pushbuild.txt', 'build/AMBuildScript', 'build/product.version'); my ($i); for ($i = 0; $i <= $#files; $i++) { if (IsNewer($files[$i], $mtime)) { @@ -44,9 +44,9 @@ if ($reconf) { my ($result); print "Attempting to reconfigure...\n"; if ($^O eq "linux") { - $result = `python3.1 ../configure.py --enable-optimize`; + $result = `python3.1 build/configure.py --enable-optimize`; } else { - $result = `C:\\Python31\\Python.exe ..\\configure.py --enable-optimize`; + $result = `C:\\Python31\\Python.exe build\\configure.py --enable-optimize`; } print "$result\n"; if ($? == -1) { @@ -55,6 +55,7 @@ if ($reconf) { } open(FILE, '>OUTPUT/sentinel'); +print FILE "this is nothing.\n"; close(FILE); sub IsNewer diff --git a/tools/buildbot/startbuild.pl b/tools/buildbot/startbuild.pl index cde85c68..d5a491bd 100755 --- a/tools/buildbot/startbuild.pl +++ b/tools/buildbot/startbuild.pl @@ -8,7 +8,7 @@ chdir($path); require 'helpers.pm'; -chdir('../../OUTPUT'); +chdir('../../../OUTPUT'); if ($^O eq "linux") { system("python3.1 build.py"); From a4512141a9b458a78a63962c409ae075439c2fb0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 29 Aug 2009 20:17:52 -0700 Subject: [PATCH 3/3] Corrected paths. --- tools/buildbot/bootstrap.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/buildbot/bootstrap.pl b/tools/buildbot/bootstrap.pl index 91be959a..9e5c14c4 100755 --- a/tools/buildbot/bootstrap.pl +++ b/tools/buildbot/bootstrap.pl @@ -44,9 +44,9 @@ if ($reconf) { my ($result); print "Attempting to reconfigure...\n"; if ($^O eq "linux") { - $result = `python3.1 build/configure.py --enable-optimize`; + $result = `python3.1 ../build/configure.py --enable-optimize`; } else { - $result = `C:\\Python31\\Python.exe build\\configure.py --enable-optimize`; + $result = `C:\\Python31\\Python.exe ..\\build\\configure.py --enable-optimize`; } print "$result\n"; if ($? == -1) {