]> granicus.if.org Git - postgis/commitdiff
get rid of bash line -- seems unnecessary and breaks if multiple states. Forgot...
authorRegina Obe <lr@pcorp.us>
Mon, 30 May 2011 09:45:36 +0000 (09:45 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 30 May 2011 09:45:36 +0000 (09:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7293 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2010/tiger_loader.sql

index 7a143b3c870268ebe045db4a0cc30bb33dfa2724..f701222f7a89a0dc55dc2783c5f4c1d68e6a32c8 100644 (file)
@@ -49,6 +49,7 @@ set PGPASSWORD=yourpasswordhere
 set PGDATABASE=geocoder
 set PSQL="%PGBIN%psql"
 set SHP2PGSQL="%PGBIN%shp2pgsql"
+cd ${staging_fold}
 ', E'del %TMPDIR%\\*.* /Q
 %PSQL% -c "DROP SCHEMA ${staging_schema} CASCADE;"
 %PSQL% -c "CREATE SCHEMA ${staging_schema};"
@@ -61,8 +62,7 @@ cd %TMPDIR%', E'%PSQL%', E'\\', E'%SHP2PGSQL%', 'set ',
 
 INSERT INTO loader_platform(os, wget, pgbin, declare_sect, unzip_command, psql, path_sep, loader, environ_set_command, county_process_command)
 VALUES('sh', 'wget', '', 
-E'#!/bin/bash
-STATEDIR="${staging_fold}/${website_root}/${state_fold}" 
+E'STATEDIR="${staging_fold}/${website_root}/${state_fold}" 
 TMPDIR="${staging_fold}/temp/"
 UNZIPTOOL=unzip
 WGETTOOL="/usr/bin/wget"
@@ -74,6 +74,7 @@ export PGPASSWORD=yourpasswordhere
 export PGDATABASE=geocoder
 PSQL=${PGBIN}/psql
 SHP2PGSQL=${PGBIN}/shp2pgsql
+cd ${staging_fold}
 ', E'rm -f ${TMPDIR}/*.*
 ${PSQL} -c "DROP SCHEMA tiger_staging CASCADE;"
 ${PSQL} -c "CREATE SCHEMA tiger_staging;"