From cdf201cdec6ddcca1dc801f9ae3ae85c7c9d0637 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 11 Nov 2009 16:59:52 -0500 Subject: [PATCH] Modified the makefile to import all of the Summary File 1 data. --- makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; -- 2.43.2