On Jun 5, 2010, at 1:01 PM, Glynn Clements wrote:

> 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[2]: *** 
>> [/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.
> 
That works, dist/etc/python/grass/lib now fully populated, no make errors 
(besides the ignored CPP unknown architecture errors).

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.


_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to