]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Modified the makefile to import all of the Summary File 1 data.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 11 Nov 2009 21:59:52 +0000 (16:59 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 11 Nov 2009 21:59:52 +0000 (16:59 -0500)
makefile

index b47b5f20252c06a8264aac783393c76c6bc324ff..649eb5929a555162e43f9fa8ebb0f8965a21f45c 100644 (file)
--- 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;