Ignore:
Timestamp:
Feb 6, 2010, 7:00:12 PM (10 years ago)
Author:
Nick Burch
Message:

Per-decade support in tile scripts

File:
1 edited

Legend:

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

    r711 r712  
    6868    print "Detected OS Northern Ireland tiles, uploading to osie\n\n";
    6969    $remote_append = "osie/";
     70} else {
     71    $remote_append = "osgb/";
     72}
     73
     74# Are they uploading the latest tiles, or ones for just one
     75#  decade?
     76if($curdir =~ /\/(19[0-6]0s)\//) {
     77    my $decade = $1;
     78    print "Decade is set to the $decade\n";
     79    $remote_append .= $decade."/";
     80} else {
     81    print "No decade restriction, uploading latest tiles\n";
     82    $remote_append .= "latest/";
    7083}
    7184
    7285# Report what we're going to do
     86print "\n";
    7387print "About to upload ".join(" ",@args)." for scale $scale\n\n";
    7488
Note: See TracChangeset for help on using the changeset viewer.