[Xapian-discuss] Xapian 0.9.5, Cygwin and xapian-config - Solved
Patrick Mézard
pmezard at gmail.com
Tue May 9 17:55:18 BST 2006
Olly Betts wrote:
> On Tue, May 09, 2006 at 04:46:57PM +0200, Patrick M?zard wrote:
>
>> - Fix the trailing commas in version.h
>>
>
> I wonder if the issue is that there's a carriage return after the ","?
>
> On the "broken" version.h, can you try:
>
> sed 's/,$//' include/xapian/version.h
>
> And:
>
> sed 's/,\(\r\)*$//' include/xapian/version.h
>
> I suspect the former won't remove the commas and the latter will.
>
> Now "\r" in sed is a GNUism, but cygwin will always have GNU sed
> and the \(...\)* means that it'll just be ignored on platforms
> where it means something different anyway and we can just use this
> expression everywhere. Solaris sed seems to interpret "\r" as the same
> as "r", for example.
>
It works like you say: the first one outputs version.h unchanged and the
second one removes the trailing commas.
--
Patrick Mézard
More information about the Xapian-discuss
mailing list