Bootstrap performs all steps up to executing builer now.
Builder sends error code on failure now.
7 my ($myself, $path) = fileparse($0);
12 chdir(Build::PathFormat('../builder'));
15 Build::Command('make clean');
16 Build::Command('make');
20 Build::Command($ENV{'MSVC7'} . ' /Rebuild Release builder.csproj');
21 Build::Command('move ' . Build::PathFormat('bin/Release/builder.exe') . ' .');
24 die "Unable to build builder tool!\n" unless -e 'builder.exe';
26 #Go back to main source dir.
27 chdir(Build::PathFormat('../..'));
30 my ($root) = getcwd();
32 #Create output folder if it doesn't exist.
34 mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
37 #Write the configuration file.
38 open(CONF, '>build.cfg') or die("Failed to write build.cfg: $!\n");
39 print CONF "OutputBase = " . Build::PathFormat($root . '/OUTPUT') . "\n";
40 print CONF "SourceBase = $root\n";
43 print CONF "BuilderPath = /usr/bin/make\n";
47 print CONF "BuilderPath = " . $ENV{'MSVC8'} . "\n";
51 #Do the annoying revision bumping.
52 #Linux needs some help here.
55 Build::Command("flip -u modules.versions");
56 Build::Command("flip -u tools/versionchanger.pl");
57 Build::Command("chmod +x tools/versionchanger.pl");
59 Build::Command("tools/versionchanger.pl");