Triggering the build.
5 my ($myself, $path) = fileparse($0);
13 our $SSH = 'ssh -i ../../mmspvkey';
15 #Sync us up with the main symbol store
20 $version = Build::ProductVersion(Build::PathFormat('product.version'));
21 $version .= '-hg' . Build::HgRevNum('.');
23 symstore("loader\\msvc9\\server.*", $version);
24 symstore("core-legacy\\msvc9\\Release\\metamod.1.ep1.*", $version);
25 symstore("core\\msvc9\\Release - Dark Messiah\\metamod.2.darkm.*", $version);
26 symstore("core\\msvc9\\Release - Orange Box\\metamod.2.ep2.*", $version);
27 symstore("core\\msvc9\\Release - Orange Box Valve\\metamod.2.ep2v.*", $version);
28 symstore("core\\msvc9\\Release - Left 4 Dead\\metamod.2.l4d.*", $version);
29 symstore("core\\msvc9\\Release - Left 4 Dead 2\\metamod.2.l4d2.*", $version);
31 #Lowercase DLLs. Sigh.
33 opendir(DIR, "..\\..\\symstore");
34 @files = readdir(DIR);
37 my ($i, $j, $file, @subdirs);
38 for ($i = 0; $i <= $#files; $i++)
41 next unless ($file =~ /\.dll$/);
42 next unless (-d "..\\..\\symstore\\$file");
43 opendir(DIR, "..\\..\\symstore\\$file");
44 @subdirs = readdir(DIR);
46 for ($j = 0; $j <= $#subdirs; $j++)
48 next unless ($subdirs[$j] =~ /[A-Z]/);
49 Build::Command("rename ..\\..\\symstore\\$file\\" . $subdirs[$j] . " " . lc($subdirs[$j]));
53 #Now that we're done, rsync back.
58 my ($line, $version) = (@_);
59 Build::Command("symstore add /r /f \"$line\" /s ..\\..\\symstore /t \"Metamod:Source\" /v \"$version\" /c \"buildbot\"");
64 my ($from, $to) = (@_);
66 Build::Command('rsync -av --delete -e="' . $SSH . '" ' . $from . ' ' . $to);