[GRASS5] Re: 5.7: man pages generated now

Hi,

two problems are remaining for the MAN page creation in 5.7:

1) this error:
cd man
make
...
Converting: xganim.html to /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/man/man1/xganim.1
/bin/sh: line 1: [: too many arguments
make[1]: Leaving directory `/home/neteler/soft/57grass_cvsexp/man'

I don't know why and where it appears in the Makefile.

2) Currently the path to PERL is hardcoded in
   scripts/g.html2man/g.html2man

I would like to use the original 5.3 approach to use $(GRASS_PERL)
and the initial lines of
  grass5/src/scripts/contrib/g.html2man/g.html2man
but I don't get that working in man/Makefile...

Help/cvs fixes welcome
thanks

Markus

Markus Neteler wrote:

two problems are remaining for the MAN page creation in 5.7:

1) this error:
cd man
make
...
Converting: xganim.html to /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/man/man1/xganim.1
/bin/sh: line 1: [: too many arguments
make[1]: Leaving directory `/home/neteler/soft/57grass_cvsexp/man'

I don't know why and where it appears in the Makefile.

Please start from mk/Makefile.docs in 5.3, not html/Gmakefile.

If you want to generate a file only if it doesn't exist or if it is
older than its source file, use "make" (as opposed to writing a
mini-make using /bin/sh and getModTime).

Also, g.html2man should probably go into the "tools" directory rather
than "scripts", as it's only used when compiling.

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

Glynn Clements wrote:

> two problems are remaining for the MAN page creation in 5.7:
>
> 1) this error:
> cd man
> make
> ...
> Converting: xganim.html to /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/man/man1/xganim.1
> /bin/sh: line 1: [: too many arguments
> make[1]: Leaving directory `/home/neteler/soft/57grass_cvsexp/man'
>
> I don't know why and where it appears in the Makefile.

Please start from mk/Makefile.docs in 5.3, not html/Gmakefile.

If you want to generate a file only if it doesn't exist or if it is
older than its source file, use "make" (as opposed to writing a
mini-make using /bin/sh and getModTime).

I've changed man/Makefile accordingly; it seems to work OK.

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

On Fri, Nov 05, 2004 at 06:03:00AM +0000, Glynn Clements wrote:

Markus Neteler wrote:

> two problems are remaining for the MAN page creation in 5.7:
>
> 1) this error:
> cd man
> make
> ...
> Converting: xganim.html to /home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/man/man1/xganim.1
> /bin/sh: line 1: [: too many arguments
> make[1]: Leaving directory `/home/neteler/soft/57grass_cvsexp/man'
>
> I don't know why and where it appears in the Makefile.

Please start from mk/Makefile.docs in 5.3, not html/Gmakefile.

Oops. Good point.

If you want to generate a file only if it doesn't exist or if it is
older than its source file, use "make" (as opposed to writing a
mini-make using /bin/sh and getModTime).

I was sort of distracted by the html/Gmakefile approach.

Thanks for fixing the Makefile.

Also, g.html2man should probably go into the "tools" directory rather
than "scripts", as it's only used when compiling.

Done.

Markus