[GRASS-dev] Re: [GRASS GIS] #1180: g.extension fails on install
step when GRASS is launched from source directory
GRASS GIS
trac at osgeo.org
Thu Sep 30 00:39:36 EDT 2010
#1180: g.extension fails on install step when GRASS is launched from source
directory
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Default | Version: svn-releasebranch64
Keywords: g.extension | Platform: Linux
Cpu: x86-64 |
-------------------------+--------------------------------------------------
Comment(by hamish):
when 'make install' (or packaging install rules) copies Platform.make to
$(PREFIX)/grass-6.4.0/include/Make, it could replace GRASS_HOME and
RUN_GISBASE with ${INST_DIR}.
right now the Makefile's `install:` just does:
{{{
-cd ${GISBASE} ; tar cBf - include | (cd ${INST_DIR} ; tar xBf - )
2>/dev/null
}}}
there are some sed commands on the following lines for the font and
monitorcap files which may serve as examples.
e.g. after the install by tar:
{{{
-sed -i -e "s#^\(GRASS_HOME.[^=]*\).*#\1= ${INST_DIR}#" \
-e "s#^\(RUN_GISBASE.[^=]*\).*#\1= ${INST_DIR}#" \
${INST_DIR}/include/Make/Platform.make
}}}
I guess for WinGrass the $INST_DIR wants to be "quoted"?
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1180#comment:3>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list