Andrew Benton wrote:
Florian Schanda wrote:
You can replace the long sed with the following:

-e 's/\bu8/__u8/g' \
-e 's/\bu16/__u16/g' \
-e 's/\bu32/__u32/g' \
-e 's/\bu64/__u64/g' \
-e 's/\bs8/__s8/g' \
-e 's/\bs16/__s16/g' \
-e 's/\bs32/__s32/g' \
-e 's/\bs64/__s64/g' \
-e 's/\b__iomem//g' \

That should be more or less equivalent, as it matches all of
\tu8
u8
(u8
,u8
 u8

Or am I missing something?

It also matches -u{8,16,32,64} and changes them to __u{8,16,32,64}

This works


cat $header | sed -e 's/\( \|(\|,\|\t\)\([us]\)\(8\|16\|32\|64\)/\1__\2\3/g' \
                                          -e 's/\( \|(\|,\|\t\)__iomem /\1/g' \
                                          -e '/#include <linux.config.h>/d' \
                                          -e 's/#ifdef linux/#ifdef 
__linux__/g' \
                                          -e 's/#ifndef linux/#ifndef 
__linux__/g' \
                                             > $header.orig
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to