[GRASS-user] Re: grass.bat script for Cygwin GRASS 6.2.2-1

Ciao Luigi,

(concerning "missing" HTML files in grass-6.2.2 cygwin)

On Mon, Sep 03, 2007 at 10:02:10PM +0200, Luigi Ponti wrote:

   Hi Markus,

   Here's a list of names that are present only in
   C:\cygwin\usr\local\grass6.1.cvs\docs\html folder and not in the
   C:\cygwin\usr\local\grass-6.2.2\docs\html folder:

   index.html
   full_index.html

... indeed, not there (apparently tools/build_html_index.sh failed?)

   d.out.png.html

should be there:
-rw-r--r-- glynn/None 985 2007-07-17 18:46:42 usr/local/grass-6.2.2/docs/html/d.out.png.html

These:

   dbf.html
   database.html
   display.html
   general.html
   imagery.html
   misc.html
   paint.html
   photo.html
   postscript.html
   raster.html
   raster3D.html
   vector.html

... do not exist in 6.2.x (I had added them in 6.3-CVS).

   grassdocs.css

... missing, looks like tools/build_html_index.sh error

   modcats.html
   modcolr.html
   modhead.html
   modhist.html

Looks like a Makefile bug:
tar tvfj grass-6.2.2-1.cygwin.tar.bz2 | grep exe.html
tar: Record size = 8 blocks
-rw-r--r-- glynn/None 552 2007-07-17 18:43:41 usr/local/grass-6.2.2/docs/html/modcats.exe.html
-rw-r--r-- glynn/None 552 2007-07-17 18:43:42 usr/local/grass-6.2.2/docs/html/modcolr.exe.html
-rw-r--r-- glynn/None 552 2007-07-17 18:43:46 usr/local/grass-6.2.2/docs/html/modhead.exe.html
-rw-r--r-- glynn/None 552 2007-07-17 18:43:43 usr/local/grass-6.2.2/docs/html/modhist.exe.html

as the .exe extension wasn't removed. No idea.

   odbc.html

The package wasn't compiled with ODBC support (it would be grass-odbc.html in any case).

   p.out.vrml.html

should be there:
-rw-r--r-- glynn/None 3430 2007-07-17 18:40:00 usr/local/grass-6.2.2/docs/html/r.out.vrml.html

   pg.html

should be there:
-rw-r--r-- glynn/None 3275 2007-07-17 18:34:57 usr/local/grass-6.2.2/docs/html/grass-pg.html

   pg.postgisdb.html
   postGRASS.html

... both deprecated.

SUMMARY:

broken, apprently due to tools/build_html_index.sh error:

   index.html
   full_index.html
   grassdocs.css

.exe not removed (Makefile bug?):

   modcats.html
   modcolr.html
   modhead.html
   modhist.html

Since I don't have Cygwin, I cannot test much.

Markus

------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------

Markus Neteler wrote:

Ciao Luigi,

(concerning "missing" HTML files in grass-6.2.2 cygwin)
  d.out.png.html
    

should be there:
-rw-r--r-- glynn/None      985 2007-07-17 18:46:42 usr/local/grass-6.2.2/docs/html/d.out.png.html
  

It’s there: I don’t know why the differencing tool I have used failed (WinMerge). I also double checked manually but did not notice that.

These:
  
   dbf.html
   database.html
   display.html
   general.html
   imagery.html
   misc.html
   paint.html
   photo.html
   postscript.html
   raster.html
   raster3D.html
   vector.html
    

... do not exist in 6.2.x (I had added them in 6.3-CVS).
  

Well, I saw them in the online 6.2 reference manual,
http://grass.itc.it/grass62/manuals/html62_user/index.html

so I thought they were supposed to be there (they are manual sections).

   p.out.vrml.html
    

should be there:
-rw-r--r-- glynn/None     3430 2007-07-17 18:40:00 usr/local/grass-6.2.2/docs/html/r.out.vrml.html
  

OK, but I don’t have it: just double checked the folder. Also the binary in C:\cygwin\usr\local\grass-6.2.2\bin is only 1KB and contains just the following line

!r.out.vrml

  
   pg.html
    

should be there:
-rw-r--r-- glynn/None     3275 2007-07-17 18:34:57 usr/local/grass-6.2.2/docs/html/grass-pg.html
  

Yes, I have grass-pg.html: it just had a different name.

SUMMARY:

broken, apprently due to tools/build_html_index.sh error:
  
   index.html
   full_index.html
   grassdocs.css
    

.exe not removed (Makefile bug?):
  
   modcats.html
   modcolr.html
   modhead.html
   modhist.html
    

Since I don't have Cygwin, I cannot test much.

Markus
  

Thanks! This is what I was trying to do: just testing.

Luigi

> p.out.vrml.html

should be there:
-rw-r--r-- glynn/None 3430 2007-07-17 18:40:00
usr/local/grass-6.2.2/docs/html/r.out.vrml.html

What version of GRASS is this?? p.out.vrml has been r.out.vrml since November
2006.

Hamish

____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

Luigi Ponti wrote on 09/04/2007 12:19 PM:

Markus Neteler wrote:

Ciao Luigi,

(concerning "missing" HTML files in grass-6.2.2 cygwin)

  d.out.png.html
    
should be there:
-rw-r--r-- glynn/None 985 2007-07-17 18:46:42 usr/local/grass-6.2.2/docs/html/d.out.png.html
  
It's there: I don't know why the differencing tool I have used failed
(WinMerge). I also double checked manually but did not notice that.

These:
  

...
... do not exist in 6.2.x (I had added them in 6.3-CVS).
      

OK, my statement is wrong, they should be (partially) there.

Well, I saw them in the online 6.2 reference manual,
http://grass.itc.it/grass62/manuals/html62_user/index.html

so I thought they were supposed to be there (they are manual sections).

You are right. But some are there:

-rw-r--r-- glynn/None 2436 2007-07-17 18:34:53
usr/local/grass-6.2.2/docs/html/grass-dbf.html
-rw-r--r-- glynn/None 3316 2007-07-17 18:35:13
usr/local/grass-6.2.2/docs/html/databaseintro.html
-rw-r--r-- glynn/None 893 2007-07-17 18:35:24
usr/local/grass-6.2.2/docs/html/displaydrivers.html
-rw-r--r-- glynn/None 6890 2007-07-17 18:39:56
usr/local/grass-6.2.2/docs/html/imageryintro.html
-rw-r--r-- glynn/None 2935 2007-07-17 18:46:37
usr/local/grass-6.2.2/docs/html/raster3dintro.html
-rw-r--r-- glynn/None 5770 2007-07-17 18:46:16
usr/local/grass-6.2.2/docs/html/rasterintro.html
-rw-r--r-- glynn/None 12983 2007-07-17 18:50:37
usr/local/grass-6.2.2/docs/html/vectorintro.html

The others might have been added in 6.3 only.

   p.out.vrml.html
    
should be there:
-rw-r--r-- glynn/None 3430 2007-07-17 18:40:00 usr/local/grass-6.2.2/docs/html/r.out.vrml.html
  
OK, but I don't have it: just double checked the folder. Also the
binary in C:\cygwin\usr\local\grass-6.2.2\bin is only 1KB and contains
just the following line

    !<symlink>r.out.vrml

Maybe some mess happened during your installation?

SUMMARY:

broken, apprently due to tools/build_html_index.sh error:
  

   index.html
   full_index.html
   grassdocs.css
      

This remains broken.

.exe not removed (Makefile bug?):
  

   modcats.html
   modcolr.html
   modhead.html
   modhist.html
    
Since I don't have Cygwin, I cannot test much.

Markus
  

Thanks! This is what I was trying to do: just testing.

Now we need someone who builds again and watches out for errors
originating from tools/build_html_index.sh + r.support Makefiles.

Markus

------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------

Hamish wrote on 09/04/2007 03:13 PM:

   p.out.vrml.html
      

should be there:
-rw-r--r-- glynn/None 3430 2007-07-17 18:40:00
usr/local/grass-6.2.2/docs/html/r.out.vrml.html
    
What version of GRASS is this?? p.out.vrml has been r.out.vrml since November
2006.

It depends on what Glynn has used.

Checking the sources:

[neteler@krokus source]$ pwd
/krokus0/neteler/www/grass62/source
[neteler@krokus source]$ tar tvfz grass-6.2.2.tar.gz | grep vrml
drwxr--r-- neteler/ssi 0 2006-10-31 22:35:55
grass-6.2.2/paint/p.out.vrml/
-rw-r--r-- neteler/ssi 781 2006-02-09 04:08:59
grass-6.2.2/paint/p.out.vrml/pv.h
-rw-r--r-- neteler/ssi 2233 2006-10-29 22:23:41
grass-6.2.2/paint/p.out.vrml/description.html
-rw-r--r-- neteler/ssi 3441 2005-01-10 18:42:59
grass-6.2.2/paint/p.out.vrml/put_grid.c
-rw-r--r-- neteler/ssi 1060 2005-01-10 18:42:59
grass-6.2.2/paint/p.out.vrml/put_view.c
-rw-r--r-- neteler/ssi 3221 2005-01-10 18:42:59
grass-6.2.2/paint/p.out.vrml/README
-rw-r--r-- neteler/ssi 990 2005-01-10 18:42:59
grass-6.2.2/paint/p.out.vrml/vrml.c
-rw-r--r-- neteler/ssi 6198 2006-10-29 22:23:41
grass-6.2.2/paint/p.out.vrml/main.c
-rw-r--r-- neteler/ssi 185 2006-10-29 22:23:41
grass-6.2.2/paint/p.out.vrml/Makefile

cat grass-6.2.2/paint/p.out.vrml/Makefile
MODULE_TOPDIR = ../..

PGM = r.out.vrml
[...]

Maybe it wasn't a clean compilation?

Markus

------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------

Hamish wrote:

   p.out.vrml.html
      
should be there:
-rw-r--r-- glynn/None     3430 2007-07-17 18:40:00
usr/local/grass-6.2.2/docs/html/r.out.vrml.html
    

What version of GRASS is this?? p.out.vrml has been r.out.vrml since November
2006.

Hamish

Version 6.2.2-1
It has both r.out.vrml and r.out.vrml.html. It also has a p.out.vrml file in the /grass-6.2.2/bin/ folder, which I think contains a symbolic link to r.out.vrml:

!r.out.vrml

Sorry for the inconvenience,

Luigi

Luigi Ponti wrote:

>> p.out.vrml.html
>>
>
> should be there:
> -rw-r--r-- glynn/None 3430 2007-07-17 18:40:00 usr/local/grass-6.2.2/docs/html/r.out.vrml.html
>

OK, but I don't have it: just double checked the folder. Also the binary
in C:\cygwin\usr\local\grass-6.2.2\bin is only 1KB and contains just the
following line

    !<symlink>r.out.vrml

This is what a Cygwin symlink looks like if you open it in a Windows
program (e.g. Notepad).

Note that p.out.vrml is just a symlink to r.out.vrml (the name has
changed).

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

Markus Neteler wrote:

>> broken, apprently due to tools/build_html_index.sh error:
>>
>>> index.html
>>> full_index.html
>>> grassdocs.css

Now we need someone who builds again and watches out for errors
originating from tools/build_html_index.sh + r.support Makefiles.

There was an error in the "locale" directory (caused by having a
native "msgfmt" in the path), so build_html_index.sh didn't get run.

The message catalogues all seem to be there, so I think that I re-run
"make -C locale" manually and failed to notice the build_html_index.sh
issue.

I doubt that those files are likely to be platform-dependent, so they
could just be copied over from e.g. a Linux build of 6.2.2.

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

Glynn Clements wrote:

Markus Neteler wrote:

>> broken, apprently due to tools/build_html_index.sh error:
>>
>>> index.html
>>> full_index.html
>>> grassdocs.css

Now we need someone who builds again and watches out for errors
originating from tools/build_html_index.sh + r.support Makefiles.

There was an error in the "locale" directory (caused by having a
native "msgfmt" in the path), so build_html_index.sh didn't get run.

The message catalogues all seem to be there, so I think that I re-run
"make -C locale" manually and failed to notice the build_html_index.sh
issue.

I doubt that those files are likely to be platform-dependent, so they
could just be copied over from e.g. a Linux build of 6.2.2.

OK, done.

http://grass.itc.it/grass62/binary/mswindows/
-> grass-6.2.2-2.cygwin.tar.bz2 (setup.ini also updated)

Do you have any idea about the not stripped .exe extension in the
r.support subdirs?

Markus

--
View this message in context: http://www.nabble.com/Native-wingrass-6.3.cvs-tf4318056.html#a12493737
Sent from the Grass - Users mailing list archive at Nabble.com.

Markus Neteler wrote:

Do you have any idea about the not stripped .exe extension in the
r.support subdirs?

Those programs all have e.g.:

  PGM = modcats$(EXE)

Part of this is because the "etc" target doesn't handle this
automatically (unlike the "cmd" and "inter" targets), and part is
because the Makefile refers to the command as:

default: etc
  $(MKDIR) $(ETC)/support
  mv $(ETC)/$(PGM) $(ETC)/support

AFAICT, we need to:

1. Change Module.make to assume that PGM doesn't have the $(EXE)
suffix.
2. Remove the $(EXE) from the PGM definition in the modules'
Makefiles.
3. Modify the modules' Makefiles to use $(PGM)$(EXE) where necessary.

But I have no idea whether other modules rely upon the existing
behaviour.

BTW, the 6.2.2 Modules.make file uses $(EXE_SUFFIX), which doesn't
appear to get set anywhere. Cygwin itself doesn't need the .exe
suffix, but it sometimes gets added by the linker (AFAICT, it only
gets added if the filename doesn't contain a dot).

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