Kaynağa Gözat

grassrc re-added (needs to be available for compilation process)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41759 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 yıl önce
ebeveyn
işleme
3fb1a23946
2 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 3 1
      demolocation/Makefile
  2. 6 0
      demolocation/grassrc.tmpl

+ 3 - 1
demolocation/Makefile

@@ -13,7 +13,6 @@ DIRS := PERMANENT PERMANENT/vector PERMANENT/dbf $(patsubst %,PERMANENT/vector/%
 DSTDIR = $(ARCH_DISTDIR)/demolocation
 DST := $(patsubst %,$(DSTDIR)/PERMANENT/%,$(SRC))
 DSTDIRS := $(patsubst %,$(DSTDIR)/%,$(DIRS))
-
 RCFILE = $(DSTDIR)/.grassrc$(GRASS_VERSION_MAJOR)$(GRASS_VERSION_MINOR)
 
 default: $(DST) $(RCFILE)
@@ -23,3 +22,6 @@ $(DSTDIR)/PERMANENT/%: PERMANENT/% | $(DSTDIRS)
 
 $(DSTDIRS): %:
 	$(MKDIR) $@
+
+$(RCFILE): grassrc.tmpl | $(DSTDIRS)
+	sed 's!@GISDBASE@!$(RUN_GISBASE)!' < $< > $@

+ 6 - 0
demolocation/grassrc.tmpl

@@ -0,0 +1,6 @@
+GISDBASE: @GISDBASE@
+LOCATION_NAME: demolocation
+MAPSET: PERMANENT
+GRASS_DB_ENCODING: utf-8
+DEBUG: 0
+GRASS_GUI: text