diff -r 41feee1fac07 -r 3494bfad2033 buildbot/symstore.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buildbot/symstore.pl Sat Apr 16 01:16:39 2011 -0700 @@ -0,0 +1,64 @@ +#!/usr/bin/perl + +use File::Basename; + +my ($myself, $path) = fileparse($0); +chdir($path); + +require 'helpers.pm'; + +chdir('..'); + +open(PDBLOG, '../OUTPUT/pdblog.txt') or die "Could not open pdblog.txt: $!\n"; + +#Get version info +my ($version); +$version = Build::ProductVersion(Build::PathFormat('product.version')); +$version =~ s/-dev//g; +$version .= '-hg' . Build::HgRevNum('.'); + +my ($build_type); +$build_type = Build::GetBuildType(Build::PathFormat('buildbot/build_type')); + +if ($build_type eq "dev") +{ + $build_type = "buildbot"; +} +elsif ($build_type eq "rel") +{ + $build_type = "release"; +} + +my ($line); +while () +{ + $line = $_; + $line =~ s/\.pdb/\*/; + chomp $line; + Build::Command("symstore add /r /f \"..\\OUTPUT\\$line\" /s \"S:\\cssdm\" /t \"Stripper\" /v \"$version\" /c \"$build_type\""); +} + +close(PDBLOG); + +#Lowercase DLLs. Sigh. +my (@files); +opendir(DIR, "S:\\cssdm"); +@files = readdir(DIR); +closedir(DIR); + +my ($i, $j, $file, @subdirs); +for ($i = 0; $i <= $#files; $i++) +{ + $file = $files[$i]; + next unless ($file =~ /\.dll$/); + next unless (-d "S:\\cssdm\\$file"); + opendir(DIR, "S:\\cssdm\\$file"); + @subdirs = readdir(DIR); + closedir(DIR); + for ($j = 0; $j <= $#subdirs; $j++) + { + next unless ($subdirs[$j] =~ /[A-Z]/); + Build::Command("rename S:\\cssdm\\$file\\" . $subdirs[$j] . " " . lc($subdirs[$j])); + } +} +