Changeset 3736 for sample

Show
Ignore:
Timestamp:
02/14/11 20:31:03 (15 months ago)
Author:
bbinet
Message:

take dirname into account

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sample/trunk/geodata/create_database.bash.in

    r3735 r3736  
    1919    shapefile=$1 
    2020    echo $${shapefile} 
    21     if [[ -f $${shapefile}.shp ]]; then 
    22         shp2pgsql -s 900913 -I -W UTF8 $${shapefile}.shp public.$${shapefile} | psql -d $${dbname} 
     21    if [[ -f $${dirname}/$${shapefile}.shp ]]; then 
     22        shp2pgsql -s 900913 -I -W UTF8 $${dirname}/$${shapefile}.shp public.$${shapefile} | psql -d $${dbname} 
    2323    fi 
    2424}