1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/buildbot/symstore.pl Sat Apr 16 01:16:39 2011 -0700
1.3 @@ -0,0 +1,64 @@
1.4 +#!/usr/bin/perl
1.5 +
1.6 +use File::Basename;
1.7 +
1.8 +my ($myself, $path) = fileparse($0);
1.9 +chdir($path);
1.10 +
1.11 +require 'helpers.pm';
1.12 +
1.13 +chdir('..');
1.14 +
1.15 +open(PDBLOG, '../OUTPUT/pdblog.txt') or die "Could not open pdblog.txt: $!\n";
1.16 +
1.17 +#Get version info
1.18 +my ($version);
1.19 +$version = Build::ProductVersion(Build::PathFormat('product.version'));
1.20 +$version =~ s/-dev//g;
1.21 +$version .= '-hg' . Build::HgRevNum('.');
1.22 +
1.23 +my ($build_type);
1.24 +$build_type = Build::GetBuildType(Build::PathFormat('buildbot/build_type'));
1.25 +
1.26 +if ($build_type eq "dev")
1.27 +{
1.28 + $build_type = "buildbot";
1.29 +}
1.30 +elsif ($build_type eq "rel")
1.31 +{
1.32 + $build_type = "release";
1.33 +}
1.34 +
1.35 +my ($line);
1.36 +while (<PDBLOG>)
1.37 +{
1.38 + $line = $_;
1.39 + $line =~ s/\.pdb/\*/;
1.40 + chomp $line;
1.41 + Build::Command("symstore add /r /f \"..\\OUTPUT\\$line\" /s \"S:\\cssdm\" /t \"Stripper\" /v \"$version\" /c \"$build_type\"");
1.42 +}
1.43 +
1.44 +close(PDBLOG);
1.45 +
1.46 +#Lowercase DLLs. Sigh.
1.47 +my (@files);
1.48 +opendir(DIR, "S:\\cssdm");
1.49 +@files = readdir(DIR);
1.50 +closedir(DIR);
1.51 +
1.52 +my ($i, $j, $file, @subdirs);
1.53 +for ($i = 0; $i <= $#files; $i++)
1.54 +{
1.55 + $file = $files[$i];
1.56 + next unless ($file =~ /\.dll$/);
1.57 + next unless (-d "S:\\cssdm\\$file");
1.58 + opendir(DIR, "S:\\cssdm\\$file");
1.59 + @subdirs = readdir(DIR);
1.60 + closedir(DIR);
1.61 + for ($j = 0; $j <= $#subdirs; $j++)
1.62 + {
1.63 + next unless ($subdirs[$j] =~ /[A-Z]/);
1.64 + Build::Command("rename S:\\cssdm\\$file\\" . $subdirs[$j] . " " . lc($subdirs[$j]));
1.65 + }
1.66 +}
1.67 +