source: trunk/src/binutils/bfd/targmatch.sed@ 257

Last change on this file since 257 was 10, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 498 bytes
Line 
11,/START OF targmatch.h/ d
2/END OF targmatch.h/,$ d
3s/^#if/KEEP #if/
4s/^#endif/KEEP #endif/
5s/^[ ]*#.*$//
6s/^KEEP #/#/
7s/[ ]*\\$//
8t lab1
9 :lab1
10s/[| ][| ]*\([^|() ][^|() ]*\)[ ]*|/{ "\1", NULL },/g
11s/[| ][| ]*\([^|() ][^|() ]*\)[ ]*)/{ "\1",/g
12t lab2
13s/^[ ]*targ_defvec=\([^ ]*\)/#if !defined (SELECT_VECS) || defined (HAVE_\1)/
14t lab3
15s/.*=.*//
16s/;;//
17b
18 :lab2
19H
20d
21 :lab3
22G
23s/\n/%EOL%/g
24s/\(defined (HAVE_\)\([^)]*\)\(.*\)/\1\2\3\
25\&\2 },\
26#endif/
27s/%EOL%/\
28/g
29p
30s/.*//g
31s/\n//g
32h
Note: See TracBrowser for help on using the repository browser.