[GRASS5] 5.7: new 'fakestart' concept with demolocation
Markus Neteler
neteler at itc.it
Wed Nov 24 15:46:09 EST 2004
Hi,
upon an idea of Radim I have added a small (68k) demolocation
into the 5.7 source code directory.
The 'fakestart' session is now using this demolocation to
generate the HTML documentation (MAN docs derived from that).
Example:
cd vector/v.hull
make
[...]
GISRC=/home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/demolocation/.grassrc57 GISBASE=/home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu PATH=/home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/bin:$PATH LD_LIBRARY_PATH=":/home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/lib" /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/bin/v.hull --html-description | grep -v '</body>' > v.hull.tmp.html ; true
echo "<HR>" >> v.hull.tmp.html
echo "<P><a href=index.html>Help Index</a>" >> v.hull.tmp.html
echo "</body></html>" >> v.hull.tmp.html
mkdir -p /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/docs/html
mv -f v.hull.tmp.html /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/docs/html/v.hull.html
install *.png *.jpg /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/docs/html 2> /dev/null ; true
The visible change here is that GISRC is set. If this works acceptable I'll
remove all the
fakestart = getenv( "GRASS_FAKE_START" );
etc
cruft from the GRASS libs.
This approach seems to be less intrusive (as libs are no longer affected) and
hopefully less fragile as well in case of library changes.
Hopefully also
http://intevation.de/rt/webrt?serial_num=2708
will be cured at the same time.
Future:
This 'demolocation' could be populated with data and then used for
some regression tests.
Markus
More information about the grass-dev
mailing list