grass.src 972 B

1234567891011121314151617181920212223242526
  1. #! /bin/sh
  2. #############################################################################
  3. #
  4. # MODULE: GRASS Initialization
  5. # AUTHOR(S): Justin Hickey - Thailand - jhickey@hpcc.nectec.or.th
  6. # PURPOSE: The source file for this shell script is in
  7. # lib/init/grass.src and is the grass startup script. It
  8. # requires a source file because the definition of GISBASE
  9. # is not known until compile time and is substituted from the
  10. # Makefile. Any command line options are passed to Init.sh.
  11. # COPYRIGHT: (C) 2000-2005 by the GRASS Development Team
  12. #
  13. # This program is free software under the GNU General Public
  14. # License (>=v2). Read the file COPYING that comes with GRASS
  15. # for details.
  16. #
  17. #############################################################################
  18. trap "echo 'User break!' ; exit" 2 3 9 15
  19. # Set the GISBASE variable
  20. GISBASE="GISBASE_VALUE"
  21. export GISBASE
  22. exec "$GISBASE/etc/Init.sh" "$@"