[GRASS-dev] python scripts in grass6

Glynn Clements glynn at gclements.plus.com
Tue Jul 7 09:47:41 EDT 2009


Martin Landa wrote:

> >> Probably I was unclear, I would like just to avoid having two separate
> >> Makefiles for one Python script, one for GRASS7 with `PGM=module` and
> >> the second for GRASS6 with `PGM=module.py`. Nothing more.
> >
> > Regardless, make needs to know which file it's supposed to be
> > creating. If you want to autodect this, it requires new code; current
> > or previous practice in GRASS 7 won't help.
> 
> Probably it would make sense to add support to the building system for
> shell scripts again - some users have a lot of such scripts.

Users scripts aren't relevant to the GRASS build system.

> Then PGM should always contain file extension.

No, because the file extension is removed on Unix, and it doesn't
appear in the name of the manpage or HTML file. PGM is the *name* of
the module or script, not necessarily its filename.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list