gis.m 629 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. #% Module
  3. #% description: GIS manager for GRASS
  4. #% End
  5. #%option
  6. #% key: dmrc
  7. #% type: string
  8. #% description: Name of GIS manager settings file (.grc)
  9. #% required : no
  10. #%End
  11. if [ $# -eq 0 ] ; then
  12. # if [ "$HOSTTYPE" = "macintosh" -o "$HOSTTYPE" = "powermac" -o "$HOSTTYPE" = "powerpc" -o "$HOSTTYPE" = "intel-pc" ] ; then
  13. # exec "$GRASS_WISH" "$GISBASE/etc/gm/gm.tcl" -name gm_tcl
  14. # else
  15. exec "$GRASS_WISH" "$GISBASE/etc/gm/gm.tcl" -name gm_tcl &
  16. # fi
  17. exit
  18. fi
  19. if [ "$1" != "@ARGS_PARSED@" ] ; then
  20. exec g.parser "$0" "$@"
  21. fi
  22. exec "$GRASS_WISH" "$GISBASE/etc/gm/gm.tcl" -name gm_tcl "$GIS_OPT_DMRC" sh &