Skip to content

Commit

Permalink
Add cmake configure input files
Browse files Browse the repository at this point in the history
  • Loading branch information
rkanavath committed Feb 17, 2020
1 parent 6ea13bc commit 6de92e6
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/init/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export GRASS_PROJSHARE=@GRASS_PROJSHARE@
export PROJ_LIB=@PROJ_LIB@
export GDAL_DATA=@GDAL_DATA@
export GISBASE=@gisbase_init_dir@
export GRASS_PYTHON=@GRASS_PYTHON@
export GRASS_CONFIG_DIR=@grass_config_dir@

# export PYTHONHOME=$gisbase_init_dir\Python37
# export FONTCONFIG_FILE=@gisbase_init_dir@\etc\fonts.conf
# export LD_LIBRARY_PATH=@DLL_PATH_LIST@:PATH%
29 changes: 29 additions & 0 deletions lib/init/grass.bat.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@echo off
::set PYTHONHOME=%GISBASE%\Python37

set GRASS_PROJSHARE=@GRASS_PROJSHARE@

set PROJ_LIB=@PROJ_LIB@

set GDAL_DATA=@GDAL_DATA@

set GEOTIFF_CSV=@GEOTIFF_CSV@

::set FONTCONFIG_FILE=%GISBASE%\etc\fonts.conf

set PATH=@gisbase_init_dir@\bin;@BINARY_DIR@;@DLL_PATH_LIST@;%PATH%

set GISBASE=@gisbase_init_dir@

set PYTHONPATH=@gisbase_init_dir@\etc\python;@gisbase_init_dir@\gui\wxpython;@gisbase_init_dir@\etc

set GRASS_PYTHON=@GRASS_PYTHON@

set GRASS_CONFIG_DIR=@grass_config_dir@

"@GRASS_PYTHON@" "@gisbase_init_dir@\etc\@START_UP@" %*

rem
rem Pause on error
rem
if %ERRORLEVEL% GEQ 1 pause
6 changes: 6 additions & 0 deletions lib/init/grass.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/sh
trap "echo 'User break!' ; exit" 2 3 9 15

. @grass_config_dir@/bashrc

"$GRASS_PYTHON" "@gisbase_init_dir@/etc/@START_UP@" "$@"
11 changes: 11 additions & 0 deletions lib/init/license.txt.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Geographic Resources Analysis Support System (GRASS) is Copyright,
1999-@GRASS_VERSION_DATE@ by the GRASS Development Team, and licensed under terms of the
GNU General Public License (GPL) version >=2.

This GRASS GIS @GRASS_VERSION_NUMBER@ release is coordinated and produced by
the GRASS Development Team with contributions from all over the world.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

0 comments on commit 6de92e6

Please sign in to comment.