Commit | Line | Data |
---|---|---|
aee06af3 | 1 | # Sanitize.in for devo/bfd. |
08942d11 RP |
2 | |
3 | # Each directory to survive it's way into a release will need a file | |
4 | # like this one called "./.Sanitize". All keyword lines must exist, | |
5 | # and must exist in the order specified by this file. Each directory | |
6 | # in the tree will be processed, top down, in the following order. | |
7 | ||
8 | # Hash started lines like this one are comments and will be deleted | |
9 | # before anything else is done. Blank lines will also be squashed | |
10 | # out. | |
11 | ||
12 | # The lines between the "Do-first:" line and the "Things-to-keep:" | |
13 | # line are executed as a /bin/sh shell script before anything else is | |
14 | # done in this | |
15 | ||
16 | Do-first: | |
17 | ||
08942d11 RP |
18 | # All files listed between the "Things-to-keep:" line and the |
19 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
20 | # Directories listed in this section will have their own Sanitize | |
21 | # called. Directories not listed will be removed in their entirety | |
22 | # with rm -rf. | |
23 | ||
24 | Things-to-keep: | |
08942d11 | 25 | COPYING |
9ef1e2da | 26 | PORTING |
86835b01 | 27 | doc |
08942d11 | 28 | ChangeLog |
13b351cc | 29 | Makefile.dos |
08942d11 RP |
30 | Makefile.in |
31 | TODO | |
8c1891af | 32 | VERSION |
08942d11 RP |
33 | aout32.c |
34 | aout64.c | |
35 | aoutf1.h | |
08942d11 | 36 | aoutx.h |
9e2b3581 | 37 | aout-encap.c |
a89f7423 | 38 | aout-target.h |
08942d11 RP |
39 | archive.c |
40 | archures.c | |
901c5bfd | 41 | bfd-in.h |
08942d11 | 42 | bfd.c |
08942d11 RP |
43 | bout.c |
44 | cache.c | |
e181b631 | 45 | ctor.c |
156e3852 | 46 | coff-a29k.c |
71e34032 | 47 | coff-h8300.c |
156e3852 JG |
48 | coff-i386.c |
49 | coff-i960.c | |
50 | coff-m68k.c | |
51 | coff-m88k.c | |
52 | coff-mips.c | |
583f79e9 | 53 | coff-msym.c |
156e3852 | 54 | coff-rs6000.c |
08942d11 | 55 | coffcode.h |
fb1c4481 | 56 | config |
13b351cc | 57 | configure.bat |
08942d11 | 58 | configure.in |
6f715d66 | 59 | core.c |
08942d11 | 60 | demo64.c |
ea3768dc | 61 | elf.c |
08942d11 | 62 | filemode.c |
6f715d66 | 63 | format.c |
608de555 | 64 | gen-aout.c |
08942d11 | 65 | host-aout.c |
90c7c720 | 66 | hosts |
76b731f9 | 67 | hppa.c |
b7de6963 | 68 | i386aout.c |
afff60cd | 69 | i386linux.c |
08942d11 | 70 | ieee.c |
141c97ea | 71 | libaout.h |
901c5bfd | 72 | libbfd-in.h |
63ffe5ef SC |
73 | cpu-a29k.c |
74 | cpu-i386.c | |
75 | cpu-m68k.c | |
76 | cpu-mips.c | |
77 | cpu-vax.c | |
78 | cpu-h8300.c | |
76b731f9 | 79 | cpu-hppa.c |
63ffe5ef SC |
80 | cpu-i960.c |
81 | cpu-m88k.c | |
cc97dfbb | 82 | cpu-rs6000.c |
1d535e75 | 83 | hp300bsd.c |
63ffe5ef | 84 | init.c |
63ffe5ef | 85 | cpu-sparc.c |
08942d11 RP |
86 | libbfd.c |
87 | libbfd.h | |
901c5bfd | 88 | libcoff-in.h |
08942d11 | 89 | libcoff.h |
76b731f9 | 90 | libhppa.h |
08942d11 RP |
91 | libieee.h |
92 | liboasys.h | |
08942d11 RP |
93 | newsos3.c |
94 | oasys.c | |
95 | opncls.c | |
6f715d66 | 96 | reloc.c |
cf15d9e9 | 97 | rs6000-core.c |
42c39b69 | 98 | sco-core.c |
2403c164 | 99 | scripts |
e98e6ec1 | 100 | seclet.c |
dc72b0b6 | 101 | seclet.h |
6f715d66 | 102 | section.c |
08942d11 | 103 | srec.c |
7de245d3 | 104 | stab-syms.c |
08942d11 | 105 | sunos.c |
6f715d66 | 106 | syms.c |
08942d11 | 107 | targets.c |
a14b2941 | 108 | tekhex.c |
08942d11 RP |
109 | trad-core.c |
110 | trad-core.h | |
111 | ||
112 | Do-last: | |
113 | ||
446545dd JG |
114 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
115 | echo Keeping v9 in aoutx.h | |
116 | else | |
117 | echo Sanitizing v9 in aoutx.h | |
118 | rm -f new | |
119 | while grep -s start-sanitize-v9 aoutx.h ; do | |
120 | sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new | |
01f0a88e RP |
121 | if [ -n "${safe}" ] ; then |
122 | mv aoutx.h .Recover | |
123 | else | |
124 | rm aoutx.h | |
125 | fi | |
446545dd JG |
126 | mv new aoutx.h |
127 | done | |
128 | fi | |
129 | ||
08942d11 RP |
130 | echo Done in `pwd`. |
131 | ||
08942d11 | 132 | # End of file. |