# HG changeset patch # User Nicholas Hastings # Date 1302837903 14400 # Node ID fe25ed65588e750ffe07c8cf47f62a3a4c099e4a # Parent 57beb5d67f8ba7df7aca7b8ecd23943af7cfe7ec# Parent f38fc2289fa539bd746464f8f15e1a1fa821bf3d Merge. diff -r 57beb5d67f8b -r fe25ed65588e support/buildbot/symstore.pl --- a/support/buildbot/symstore.pl Thu Apr 14 23:24:17 2011 -0400 +++ b/support/buildbot/symstore.pl Thu Apr 14 23:25:03 2011 -0400 @@ -10,13 +10,8 @@ chdir('..'); chdir('..'); -our $SSH = 'ssh -i ../../mmspvkey'; - open(PDBLOG, '../OUTPUT/pdblog.txt') or die "Could not open pdblog.txt: $!\n"; -#Sync us up with the main symbol store -rsync('sourcemm@alliedmods.net:~/public_html/symbols/', '..\\..\\symstore'); - #Get version info my ($version); $version = Build::ProductVersion(Build::PathFormat('product.version')); @@ -41,14 +36,14 @@ $line = $_; $line =~ s/\.pdb/\*/; chomp $line; - Build::Command("symstore add /r /f \"..\\OUTPUT\\$line\" /s ..\\..\\symstore /t \"Metamod:Source\" /v \"$version\" /c \"$build_type\""); + Build::Command("symstore add /r /f \"..\\OUTPUT\\$line\" /s \"S:\\mmsource\" /t \"Metamod:Source\" /v \"$version\" /c \"$build_type\""); } close(PDBLOG); #Lowercase DLLs. Sigh. my (@files); -opendir(DIR, "..\\..\\symstore"); +opendir(DIR, "S:\\mmsource"); @files = readdir(DIR); closedir(DIR); @@ -57,23 +52,14 @@ { $file = $files[$i]; next unless ($file =~ /\.dll$/); - next unless (-d "..\\..\\symstore\\$file"); - opendir(DIR, "..\\..\\symstore\\$file"); + next unless (-d "S:\\mmsource\\$file"); + opendir(DIR, "S:\\mmsource\\$file"); @subdirs = readdir(DIR); closedir(DIR); for ($j = 0; $j <= $#subdirs; $j++) { next unless ($subdirs[$j] =~ /[A-Z]/); - Build::Command("rename ..\\..\\symstore\\$file\\" . $subdirs[$j] . " " . lc($subdirs[$j])); + Build::Command("rename S:\\mmsource\\$file\\" . $subdirs[$j] . " " . lc($subdirs[$j])); } } -#Now that we're done, rsync back. -rsync('../../symstore/', 'sourcemm@alliedmods.net:~/public_html/symbols'); - -sub rsync -{ - my ($from, $to) = (@_); - - Build::Command('rsync -av --delete -e="' . $SSH . '" ' . $from . ' ' . $to); -}