[GRASS-dev] Re: [GRASS-CVS] hamish: grass6/lib/init init.sh, 1.119, 1.120

Markus Neteler neteler at itc.it
Sat Oct 6 03:53:28 EDT 2007


On Sat, Oct 06, 2007 at 07:05:00AM +0200, grass at intevation.de 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
------------------




More information about the grass-dev mailing list