Martin Landa wrote:
> > C:\Program Files\GRASS-70-SVN>grass70.bat
> > Traceback (most recent call last):
> > File "C:\Program Files\GRASS-70-SVN\grass70.py", line 892, in <module>
> > grass_intro()
> > File "C:\Program Files\GRASS-70-SVN\grass70.py", line 335, in grass_intro
> > f = open(path, 'r')
> > IOError: [Errno 2] No such file or directory:
> > 'c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-mingw32\\etc\\grass_intro'
> >
> > Am I missing something?
>
> No, it's bug in grass70.py (hardcoded gisbase variable).
I think that it needs this:
Index: include/Make/Install.make
===================================================================
--- include/Make/Install.make (revision 41738)
+++ include/Make/Install.make (working copy)
@@ -81,10 +81,10 @@
real-install:
test -d $(INST_DIR) || $(MAKE_DIR_CMD) $(INST_DIR)
test -d $(UNIX_BIN) || $(MAKE_DIR_CMD) $(UNIX_BIN)
- -$(INSTALL) $(ARCH_BINDIR)/$(GRASS_NAME) $(UNIX_BIN)/$(GRASS_NAME)
+ -sed 's#'$(RUN_GISBASE)'#'$(INST_DIR)'#g' $(ARCH_BINDIR)/$(GRASS_NAME)
> $(UNIX_BIN)/$(GRASS_NAME)
-chmod a+x $(UNIX_BIN)/$(GRASS_NAME)
ifneq ($(strip $(MINGW)),)
- -$(INSTALL) $(ARCH_BINDIR)/$(GRASS_NAME).py $(UNIX_BIN)/$(GRASS_NAME).py
+ -sed 's#'$(RUN_GISBASE)'#'$(INST_DIR)'#g'
$(ARCH_BINDIR)/$(GRASS_NAME).py > $(UNIX_BIN)/$(GRASS_NAME).py
-chmod a+x $(UNIX_BIN)/$(GRASS_NAME).py
endif
-tar cBCf $(GISBASE) - . | tar xBCf $(INST_DIR) - 2>/dev/null
--
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user