[GRASS-dev] grass7 on mac OSX
glynn at gclements.plus.com
Sat Jun 5 14:01:32 EDT 2010
William Kyngesburye wrote:
> Next error, after that finishes:
> sed \
> -e '/^# End loader$/a\
> from ctypes_preamble import *\
> from ctypes_preamble import _variadic_function\
> from ctypes_loader import *' \
> -e '/^# Begin preamble$/,/^# End preamble$/d' \
> -e '/^# Begin loader$/,/^# End loader$/d' \
> date.py > /Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/date.py
> sed: 1: "/^# End loader$/afrom c ...": command a expects \ followed by text
> make: *** [/Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/date.py] Error 1
> There is only 1 file after this in dist/etc/python/grass/lib: an empty date.py.
> I never had any luck on OSX with newlines in sed replacement strings
> in makefiles. It'll work in shell scripts but not makefiles.
Try r42489; this moves the sed script to a separate file.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev