X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Ftargmatch.sed;h=2716876547467d122ad1347022296c6f1eef8616;hb=4ad0bb5f3a5b2d03079819cf419b174a762c2d52;hp=9effbd579fdcc06331092a4389170807844b4e20;hpb=fa803dc60f0bf01297674c41d001798e18ade4dc;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