Replying to myself after rereading what I wrote:
On 05/10/07 16:02, Moritz Lennert wrote:
But I don't see any conditioning around this, so IIUC driver and
database will always be set to dbf of the mapset at each startup. It
probably needs a test for the dbf directory around it. Something like
(not a bash expert):
if [ ! -e $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/];
then
echo "DB_DRIVER: dbf" > "$LOCATION/VAR"
echo "DB_DATABASE: \$GISDBASE/\$LOCATION_NAME/\$MAPSET/dbf/" >>
"$LOCATION/VAR"
mkdir "$LOCATION"/dbf
fi
No, this should be
if [ ! -e $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/];
then
mkdir "$LOCATION"/dbf
fi
And $LOCATION/VAR variables should only be preset to the dbf driver if
for any reason it is empty, if at all.
Moritz
_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev