X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=bfd%2Ftargmatch.sed;h=2716876547467d122ad1347022296c6f1eef8616;hb=0381901e629115f5f0d92a27fe74b1814f6f389a;hp=9effbd579fdcc06331092a4389170807844b4e20;hpb=e98fe4f7b54cbdf29aef9287bbb1bea8801dd05a;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/targmatch.sed b/bfd/targmatch.sed index 9effbd579f..2716876547 100644 --- a/bfd/targmatch.sed +++ b/bfd/targmatch.sed @@ -1,5 +1,6 @@ 1,/START OF targmatch.h/ d /END OF targmatch.h/,$ d +/^[ ]*case/,/^[ ]*esac/ d s/^#if/KEEP #if/ s/^#endif/KEEP #endif/ s/^[ ]*#.*$// @@ -20,9 +21,13 @@ H d :lab3 G -s/\(defined (HAVE_\)\([^)]*\)\(.*\n*.*\n*.*\n*.*\)/\1\2\3\ +s/\n/%EOL%/g +s/\(defined (HAVE_\)\([^)]*\)\(.*\)/\1\2\3\ \&\2 },\ #endif/ +s/%EOL%/\ +/g p -s/.*\n*.*\n*.*\n*.*//g +s/.*//g +s/\n//g h