[GRASS-dev] [bug #5499] (grass) bash scripts starting with
#!/bin/sh
Glynn Clements
glynn at gclements.plus.com
Tue May 1 05:33:23 EDT 2007
Maciek Sieczka via RT wrote:
> > In current 6.3 CVS there are several instances of "echo -e", which is a
> > bashism. In dash "echo -e" will just print '-e' string.
>
> > lib/gis/Makefile: echo -e "#include <stdlib.h>\n#include
> > <fcntl.h>\n#undef _fmode\nint _fmode = _O_BINARY;" > $(OBJDIR)/fmode.c
I suggest putting the code into e.g. fmode.dat then using:
cat fmode.dat > $(OBJDIR)/fmode.c
It can't be a normal .c file, as the default rules automatically
compile all .c files and link the resulting objects into the library.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list