Changeset 589


Ignore:
Timestamp:
Oct 17, 2007, 3:19:17 PM (12 years ago)
Author:
Nick Burch
Message:

Make a start on an importer from the full npemaps list

Location:
trunk/npemap.org.uk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/perllib/NPEMap/Config.pm

    r429 r589  
    1212
    1313# Read in site config
    14 my $config = $FindBin::Bin . '/../npemap.conf';
     14my $config;
     15my @searches = qw( . .. ../.. );
     16foreach my $s (@searches) {
     17        $config = $FindBin::Bin . "/$s/npemap.conf";
     18        if(-f $config) { last; }
     19}
    1520do $config or die "Can't read $config!\n";
    1621
  • trunk/npemap.org.uk/schema_postgres.sql

    r507 r589  
    1111INSERT INTO sources VALUES (0, 'NPE Postcode web submission');
    1212INSERT INTO sources VALUES (1, 'FreeThePostcode.org Importer');
    13 SELECT SETVAL('s_sources',1);
     13INSERT INTO sources VALUES (2, 'NPEMap Mirror Script');
     14SELECT SETVAL('s_sources',2);
    1415
    1516
Note: See TracChangeset for help on using the changeset viewer.