From: Michael Orlitzky Date: Wed, 11 Nov 2009 21:59:52 +0000 (-0500) Subject: Modified the makefile to import all of the Summary File 1 data. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fcensus-tools.git;a=commitdiff_plain;h=cdf201cdec6ddcca1dc801f9ae3ae85c7c9d0637 Modified the makefile to import all of the Summary File 1 data. --- diff --git a/makefile b/makefile index b47b5f2..649eb59 100644 --- a/makefile +++ b/makefile @@ -85,9 +85,16 @@ db: data newdb tiger_blocks_table tiger_lines_table sf1_blocks_table done; \ done; - bin/sf1blocks2sql src/Tests/Fixtures/SummaryFile1/mdgeo.uf1 sf1_blocks \ - | psql -U postgres -d $(DB_NAME) \ - > /dev/null +# Summary File 1 +# +# Run all of the geo (uf1) files through the import script. This has +# to happen after the blocks import since we impose a foreign key +# restriction. + for state in data/census2000/*; do \ + bin/sf1blocks2sql $$state/sf1/*.uf1 sf1_blocks \ + | psql -U postgres -d $(DB_NAME) \ + > /dev/null; \ + done;