Changeset 542 for trunk


Ignore:
Timestamp:
May 7, 2007, 5:29:06 PM (13 years ago)
Author:
Nick Burch
Message:

Support NI tiles too (uploaded to /osie/scaled? instead of /scaled?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/scripts/tile-processing/upload.pl

    r490 r542  
    4343}
    4444
     45# Do they want to upload to osgb, or osie?
     46my $remote_append = "";
     47if($curdir =~ /\/ni-maps\//) {
     48    print "Detected OS Northern Ireland tiles, uploading to osie\n\n";
     49    $remote_append = "osie/";
     50}
     51
    4552# Report what we're going to do
    4653print "About to upload ".join(" ",@args)." for scale $scale\n\n";
     
    5360# Upload each in turn
    5461foreach my $server (reverse sort keys %servers) {
    55         my $path = $servers{$server} . $dir;
     62        my $path = $servers{$server} . $remote_append . $dir;
    5663
    57         my $cmd = "rsync -avc ".join(" ",@args)." $server:$path";
     64        my $cmd = "rsync -avc --bwlimit=96 ".join(" ",@args)." $server:$path";
    5865        print $cmd."\n";
    5966        print `$cmd 1>&2`;
Note: See TracChangeset for help on using the changeset viewer.