[GRASS-dev] [grass-code P][364] Tiny patch for building

Markus Neteler neteler at itc.it
Sat Apr 7 08:53:55 EDT 2007


On Sat, Apr 07, 2007 at 12:43:26PM +0100, Glynn Clements wrote:
> 
> grass-codep at wald.intevation.org wrote:
> 
> > Initial Comment:
> > While building for debian, programming manual is generated in a second phase.
> > In the following case the 3 files are already present and read-only, so build fails.
> > 
> > 
> > 
> > diff -urNad grass-6.2.2~20070406~/scripts/r.in.wms/Makefile grass-6.2.2~20070406/scripts/r.in.wms/Makefile
> > --- grass-6.2.2~20070406~/scripts/r.in.wms/Makefile     2007-04-07 12:52:36.000000000 +0200
> > +++ grass-6.2.2~20070406/scripts/r.in.wms/Makefile      2007-04-07 12:54:38.000000000 +0200
> > @@ -6,4 +6,4 @@
> > 
> >  default: script
> >         $(MKDIR) $(GISBASE)/etc/r.in.wms/
> > -       cp r.in.gdalwarp wms.request wms.download $(GISBASE)/etc/r.in.wms/
> > +       cp -f r.in.gdalwarp wms.request wms.download $(GISBASE)/etc/r.in.wms/
> 
> This should use $(INSTALL) instead of "cp", e.g.
> 
> 	for file in r.in.gdalwarp wms.request wms.download ; do $(INSTALL) $$file ; done

Submitted as

for file in r.in.gdalwarp wms.request wms.download ; do $(INSTALL) -m 755 $$file $(GISBASE)/etc/r.in.wms/ ; done

Markus




More information about the grass-dev mailing list