On Sat, Oct 06, 2007 at 07:05:00AM +0200, [EMAIL PROTECTED] wrote: > Author: hamish > > Update of /grassrepository/grass6/lib/init > In directory doto:/tmp/cvs-serv6411 > > Modified Files: > init.sh > Log Message: > add test so don't overwrite VAR file without testing. I just commented the > whole > thing out though after fixing it, as the VAR and $MAPSET/dbf/ should be > created on demand. To a raster-only or postgres-only user they are just > file pollution. code bug #502 > > > Index: init.sh > =================================================================== > RCS file: /grassrepository/grass6/lib/init/init.sh,v > retrieving revision 1.119 > retrieving revision 1.120 > diff -u -d -r1.119 -r1.120 > --- init.sh 3 Oct 2007 08:30:48 -0000 1.119 > +++ init.sh 6 Oct 2007 05:04:58 -0000 1.120 > @@ -495,9 +495,10 @@ > cp "$GISDBASE/$LOCATION_NAME/PERMANENT/WIND" > "$LOCATION/WIND" > echo "Missing WIND file fixed" > # predefine DBF driver > - echo "DB_DRIVER: dbf" > "$LOCATION/VAR" > - echo "DB_DATABASE: > \$GISDBASE/\$LOCATION_NAME/\$MAPSET/dbf/" >> "$LOCATION/VAR" > - mkdir "$LOCATION"/dbf > + # why is this needed ?? > + #echo "DB_DRIVER: dbf" > "$LOCATION/VAR" > + #echo "DB_DATABASE: > \$GISDBASE/\$LOCATION_NAME/\$MAPSET/dbf/" >> "$LOCATION/VAR" > + #mkdir "$LOCATION"/dbf
This is needed, if you start GRASS from CMD line with full path to a non-existing mapset (which is then created). So this should be restored somehow. Above was there for many months without problems. The recent problem seems to arise from a different modification. Markus PS: I find init.sh rather overloaded and hard to understand. ------------------ ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler ITC -> since 1 March 2007 Fondazione Bruno Kessler ------------------ _______________________________________________ grass-dev mailing list [email protected] http://grass.itc.it/mailman/listinfo/grass-dev

