This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crosstool-ng: where is a strategic place to tell crosstool-ng that sed should be gsed?


John Utz wrote:
BSD sed doesnt grok '-r' and it's used all over the place in crosstool-ng.

The (FreeBSD) sed option for extended regular expressions is -E, but a quick hack alternative would be to just do "alias sed gsed" in the beginning of the script. :)


What would be desired would be either some environment vars or some
configure time detection that does the right thing or a flag called 'use
BSD names for gnu utils'

Just something like:


SED="gsed"
AWK="gawk"

and replacing direct invocations of sed, awk, e.g. with ${SED}, ${AWK},
and so on.

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]