[GRASS-dev] [bug #4498] (grass) d.out.png script copied to docs/html/ in err

Markus Neteler neteler at itc.it
Wed May 24 06:24:18 EDT 2006


Request Tracker wrote:

>this bug's URL: http://intevation.de/rt/webrt?serial_num=4498
>-------------------------------------------------------------------------
>
>Subject: d.out.png script copied to docs/html/ in err
>
>Hi,
>
>I just noticed that the d.out.png script is copied to $GISBASE/docs/html/.
>I guess the Makefile figures it is an image for the help page.
>  
>

Right.

How to get

        -for file in  *.png *.jpg ; do \
                head -1 $$file | grep '#!/bin/sh' > /dev/null \
                if [ $$? -ne 0 ] ; then
                   $(INSTALL_DATA) $$file $(GISBASE)/docs/html \
                fi \
                done 2> /dev/null ; true

working (in include/Make/Html.make)?
The problem is that $$? isn't found. Maybe there is a less ugly trick to
test if
the first file of the $$file is a shell script.

Markus

>
>Hamish
>
>
>-------------------------------------------- Managed by Request Tracker
>
>_______________________________________________
>grass-dev mailing list
>grass-dev at grass.itc.it
>http://grass.itc.it/mailman/listinfo/grass-dev
>  
>




More information about the grass-dev mailing list