Re: [PATCH] kbuild: Improve portability of some sed invocations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-02-06, Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx> wrote:
> 2018-01-29 7:56 GMT+09:00 Michael Forney <mforney@xxxxxxxxxxx>:
>> diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh
>> index a18bca720995..7328394cf9e8 100755
>> --- a/scripts/headers_install.sh
>> +++ b/scripts/headers_install.sh
>> @@ -31,13 +31,13 @@ trap 'rm -f "$OUTDIR/$FILE" "$OUTDIR/$FILE.sed"' EXIT
>>  for i in "$@"
>>  do
>>         FILE="$(basename "$i")"
>> -       sed -r \
>> -               -e 's/([ \t(])(__user|__force|__iomem)[ \t]/\1/g' \
>> -               -e 's/__attribute_const__([ \t]|$)/\1/g' \
>> +       sed -E \
>> +               -e 's/([        (])(__user|__force|__iomem)[    ]/\1/g' \
>> +               -e 's/__attribute_const__([     ]|$)/\1/g' \
>
> I am afraid this is unreadable.
>
> Does [[:SPACE:]] work?

Yep, I can resend with [[:space:]] instead of the literal <tab>.

Thanks for taking a look.
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux