[GRASS-dev] g.extension continued problems

Markus Neteler neteler at osgeo.org
Mon Sep 10 01:18:35 PDT 2012


On Tue, Sep 4, 2012 at 12:20 PM, Hamish <hamish_b at yahoo.com> wrote:
> Anna wrote:
>> it works for me even though I don't have pandoc:
>>
>> g.extension extension=g.copyall
>> svnurl=http://svn.osgeo.org/grass/grass-addons/grass7
>> Fetching <g.copyall> from GRASS-Addons SVN (be
>> patient)...
>> Compiling...
>> /bin/sh: pandoc: not found
>
> I suspect this line in Rest.make (--> ReST.make) should have a 2> /dev/null
> as well as > /dev/null, and/or isn't working as expected.
>
>       @(type pandoc > /dev/null || (echo "ERROR: Install 'pandoc' software first (get from http://johnmacfarlane.net/pandoc/)" && exit 1))

The reason (to me) is that this line is never called since there is no trace of
#check for program
checkpandoc:

being referenced in the make process.

A proper usage would be
- if pandoc is present, do --rest-description
- if pandoc is not present, ignore this completely

Markus


More information about the grass-dev mailing list