build fails w/ sed errors



On 11/8/10 11:26 PM, Robert Dodier wrote:
> On 11/8/10, Barton Willis <willisb at unk.edu> wrote:
>
>> I have GNU sed version 3.02. I tried updating msys, but I still have the
>> same sed version.
> I'm working on CentOS 4 (Linux) w/ sed 4.1.2.
> (Also tried it with sed 4.2 but I get the same errors.)
>
>> config.status: creating maxima-local
>> sed: file ./confstat5168-26447/subs-3.sed line 51: Unterminated `s'
>> command
>> sed: file ./confstat5168-26447/subs-4.sed line 3: Unknown command: ``"''
>> sed: file ./confstat5168-26447/subs-5.sed line 3: Unknown command: ``"''
It's obvious why the errors are occuring:  the lines have been somehow
truncated.

Why are  these files created?  I don't seem to get them on my builds.

Anyway, can you try the following fix?  In configure.in, use this line
for default_sharedirs:

default_sharedirs=`find share -type d | sort | egrep -v
'share$|CVS|/fortran' | sed 's;share/\(.*\);"\1";' | tr '\n' ' '`

This basically converts the multiple lines from find into one giant line.

I have not tried this out on Windows, but it might work.  I'm not sure
how tr will work there.

Ray