Triggering build.
5 my ($myself, $path) = fileparse($0);
13 our $SSH = 'ssh -i ../../mmspvkey';
15 open(PDBLOG, '../OUTPUT/pdblog.txt') or die "Could not open pdblog.txt: $!\n";
17 #Sync us up with the main symbol store
22 $version = Build::ProductVersion(Build::PathFormat('product.version'));
23 $version =~ s/-dev//g;
24 $version .= '-hg' . Build::HgRevNum('.');
27 $build_type = Build::GetBuildType(Build::PathFormat('support/buildbot/build_type'));
29 if ($build_type eq "dev")
31 $build_type = "buildbot";
33 elsif ($build_type eq "rel")
35 $build_type = "release";
44 Build::Command("symstore add /r /f \"..\\OUTPUT\\$line\" /s ..\\..\\symstore /t \"Metamod:Source\" /v \"$version\" /c \"$build_type\"");
49 #Lowercase DLLs. Sigh.
51 opendir(DIR, "..\\..\\symstore");
52 @files = readdir(DIR);
55 my ($i, $j, $file, @subdirs);
56 for ($i = 0; $i <= $#files; $i++)
59 next unless ($file =~ /\.dll$/);
60 next unless (-d "..\\..\\symstore\\$file");
61 opendir(DIR, "..\\..\\symstore\\$file");
62 @subdirs = readdir(DIR);
64 for ($j = 0; $j <= $#subdirs; $j++)
66 next unless ($subdirs[$j] =~ /[A-Z]/);
67 Build::Command("rename ..\\..\\symstore\\$file\\" . $subdirs[$j] . " " . lc($subdirs[$j]));
71 #Now that we're done, rsync back.
76 my ($from, $to) = (@_);
78 Build::Command('rsync -av --delete -e="' . $SSH . '" ' . $from . ' ' . $to);