#!/bin/sh

# create directories for GRASS data in a LOCATION.

# check for LOCATION set

if [ -z "$LOCATION" ] ; then
  echo "$0: \$LOCATION not set.  You must be running under the GRASS shell"
  exit
fi

for d in 3d.view arc cats cats_dig cell cell_misc cellhd colr colr2 dig \
         dig_ascii dig_att dig_cats dig_geo dig_plus dlg group hist mapgen \
         reg site_lists sites_geo windows 
do
  if [ ! -d $LOCATION/$d ] ; then
    mkdir $LOCATION/$d
  fi
done

