Commit | Line | Data |
---|---|---|
a92c5906 | 1 | # .Sanitize for devo/bfd |
08942d11 | 2 | |
a92c5906 | 3 | # Each directory to survive its way into a release will need a file |
08942d11 RP |
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 | ||
1bea1b6f KR |
18 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
19 | keep_these_too="elf64-sparc.c" | |
f7df1b2b FF |
20 | else |
21 | lose_these_too="elf64-sparc.c" | |
1bea1b6f KR |
22 | fi |
23 | ||
a92c5906 | 24 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
e4c7516b SS |
25 | keep_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${keep_these_too}" |
26 | else | |
27 | lose_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${lose_these_too}" | |
28 | fi | |
29 | ||
30 | if ( echo $* | grep keep\-gm > /dev/null ) ; then | |
31 | keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}" | |
32 | else | |
33 | lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}" | |
a92c5906 SS |
34 | fi |
35 | ||
08942d11 RP |
36 | # All files listed between the "Things-to-keep:" line and the |
37 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
38 | # Directories listed in this section will have their own Sanitize | |
39 | # called. Directories not listed will be removed in their entirety | |
40 | # with rm -rf. | |
41 | ||
42 | Things-to-keep: | |
87756e15 | 43 | |
08942d11 RP |
44 | COPYING |
45 | ChangeLog | |
ceeca31c | 46 | ChangeLog.1 |
08942d11 | 47 | Makefile.in |
c3e964b9 | 48 | PORTING |
08942d11 | 49 | TODO |
8c1891af | 50 | VERSION |
60ac749c | 51 | aix386-core.c |
c3e964b9 FF |
52 | aout-adobe.c |
53 | aout-encap.c | |
54 | aout-target.h | |
08942d11 RP |
55 | aout32.c |
56 | aout64.c | |
57 | aoutf1.h | |
08942d11 RP |
58 | aoutx.h |
59 | archive.c | |
60 | archures.c | |
901c5bfd | 61 | bfd-in.h |
b9653d81 | 62 | bfd-in2.h |
08942d11 | 63 | bfd.c |
08942d11 RP |
64 | bout.c |
65 | cache.c | |
e3b5bfa8 SS |
66 | cf-i386lynx.c |
67 | cf-m68klynx.c | |
68 | cf-sparclynx.c | |
156e3852 | 69 | coff-a29k.c |
c3e964b9 | 70 | coff-alpha.c |
97eb2f0c | 71 | coff-apollo.c |
71e34032 | 72 | coff-h8300.c |
ff975a2c | 73 | coff-h8500.c |
156e3852 JG |
74 | coff-i386.c |
75 | coff-i960.c | |
c3e964b9 | 76 | coff-m68k.c |
156e3852 JG |
77 | coff-m88k.c |
78 | coff-mips.c | |
79 | coff-rs6000.c | |
9faacb92 | 80 | coff-sh.c |
e3b5bfa8 | 81 | coff-sparc.c |
df61743d | 82 | coff-u68k.c |
c7551f76 | 83 | coff-we32k.c |
d41ab714 | 84 | coff-z8k.c |
08942d11 | 85 | coffcode.h |
075caafd ILT |
86 | coffgen.c |
87 | coffswap.h | |
fb1c4481 | 88 | config |
14616002 | 89 | config.bfd |
13b351cc | 90 | configure.bat |
5a5fa368 | 91 | configure.host |
c3e964b9 | 92 | configure.in |
6f715d66 | 93 | core.c |
c3e964b9 FF |
94 | cpu-a29k.c |
95 | cpu-alpha.c | |
96 | cpu-h8300.c | |
97 | cpu-h8500.c | |
98 | cpu-hppa.c | |
99 | cpu-i386.c | |
100 | cpu-i960.c | |
101 | cpu-m68k.c | |
102 | cpu-m88k.c | |
103 | cpu-mips.c | |
104 | cpu-rs6000.c | |
105 | cpu-sh.c | |
106 | cpu-sparc.c | |
107 | cpu-vax.c | |
108 | cpu-we32k.c | |
109 | cpu-z8k.c | |
110 | ctor.c | |
08942d11 | 111 | demo64.c |
97eb2f0c | 112 | dep-in.sed |
c3e964b9 | 113 | doc |
dae31cf5 | 114 | ecoff.c |
71efdf83 | 115 | ecofflink.c |
dae31cf5 | 116 | ecoffswap.h |
cef91d75 | 117 | elf.c |
d39d83c1 | 118 | elf32-gen.c |
c268b400 KR |
119 | elf32-hppa.c |
120 | elf32-hppa.h | |
4743848f KR |
121 | elf32-i386.c |
122 | elf32-i860.c | |
123 | elf32-m68k.c | |
2c4f2c72 JK |
124 | elf32-m88k.c |
125 | elf32-mips.c | |
8d936d1f | 126 | elf32-sparc.c |
4743848f KR |
127 | elf32-target.h |
128 | elf32.c | |
d39d83c1 | 129 | elf64-gen.c |
b864c03c | 130 | elf64-target.h |
4bf86ecb | 131 | elf64.c |
ef7e172e | 132 | elfcode.h |
08942d11 | 133 | filemode.c |
6f715d66 | 134 | format.c |
608de555 | 135 | gen-aout.c |
da6b2d99 ILT |
136 | genlink.h |
137 | hash.c | |
08942d11 | 138 | host-aout.c |
90c7c720 | 139 | hosts |
c3e964b9 | 140 | hp300bsd.c |
c268b400 | 141 | hp300hpux.c |
cef91d75 | 142 | hppa_stubs.h |
8a71bf96 | 143 | hppabsd-core.c |
3f933620 | 144 | hpux-core.c |
b7de6963 | 145 | i386aout.c |
256b39e0 | 146 | i386bsd.c |
afff60cd | 147 | i386linux.c |
aef0bd99 | 148 | i386lynx.c |
890eafc0 | 149 | i386mach3.c |
08942d11 | 150 | ieee.c |
c3e964b9 | 151 | init.c |
7ce1a446 | 152 | irix-core.c |
141c97ea | 153 | libaout.h |
901c5bfd | 154 | libbfd-in.h |
08942d11 RP |
155 | libbfd.c |
156 | libbfd.h | |
901c5bfd | 157 | libcoff-in.h |
08942d11 | 158 | libcoff.h |
a3b3dbdd | 159 | libecoff.h |
c3e964b9 | 160 | libelf.h |
76b731f9 | 161 | libhppa.h |
08942d11 | 162 | libieee.h |
c3e964b9 | 163 | libnlm.h |
08942d11 | 164 | liboasys.h |
da6b2d99 | 165 | linker.c |
3151f12f | 166 | lynx-core.c |
eefe075d | 167 | m68klynx.c |
044c1ba9 | 168 | mipsbsd.c |
08942d11 | 169 | newsos3.c |
fbd5481a | 170 | netbsd386.c |
d1f83f44 | 171 | nlm-target.h |
c3e964b9 | 172 | nlm.c |
1bbabdad | 173 | nlm32-alpha.c |
8fa7a236 | 174 | nlm32-i386.c |
38f422db | 175 | nlm32-sparc.c |
c3e964b9 | 176 | nlm32.c |
c3e964b9 FF |
177 | nlm64.c |
178 | nlmcode.h | |
38f422db | 179 | nlmswap.h |
08942d11 RP |
180 | oasys.c |
181 | opncls.c | |
4346ee0f | 182 | osf-core.c |
c236d8b3 | 183 | ptrace-core.c |
6f715d66 | 184 | reloc.c |
075caafd | 185 | reloc16.c |
cf15d9e9 | 186 | rs6000-core.c |
6f715d66 | 187 | section.c |
66eca5ee JK |
188 | som.c |
189 | som.h | |
e3b5bfa8 | 190 | sparclynx.c |
08942d11 | 191 | srec.c |
7de245d3 | 192 | stab-syms.c |
08942d11 | 193 | sunos.c |
6f715d66 | 194 | syms.c |
08942d11 | 195 | targets.c |
a14b2941 | 196 | tekhex.c |
08942d11 | 197 | trad-core.c |
08942d11 | 198 | |
87756e15 RP |
199 | Things-to-lose: |
200 | ||
775d4a40 | 201 | |
08942d11 RP |
202 | Do-last: |
203 | ||
3d7de4c2 | 204 | v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd" |
b9653d81 | 205 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
b864c03c KR |
206 | if [ -n "${verbose}" ] ; then |
207 | echo Keeping v9 stuff in $v9files. | |
208 | fi | |
b9653d81 | 209 | else |
b864c03c | 210 | if [ -n "${verbose}" ]; then |
1bea1b6f | 211 | echo -n Cleaning v9 in `pwd`: |
b864c03c KR |
212 | fi |
213 | for f in $v9files ; do | |
214 | if [ -n "${verbose}" ] ; then | |
215 | echo -n " " $f | |
216 | fi | |
1bea1b6f | 217 | sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new |
b864c03c | 218 | if [ -n "${safe}" ] ; then |
1bea1b6f | 219 | mv $f .Recover |
b864c03c KR |
220 | fi |
221 | mv new $f | |
222 | done | |
3ba17f70 | 223 | chmod a+x config.bfd |
b9653d81 KR |
224 | fi |
225 | ||
3ba17f70 | 226 | |
fbe3316a SS |
227 | mpwfiles="coffswap.h" |
228 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
229 | if [ -n "${verbose}" ] ; then | |
230 | echo Keeping mpw stuff in $mpwfiles. | |
231 | fi | |
232 | else | |
233 | if [ -n "${verbose}" ]; then | |
234 | echo -n Cleaning mpw in `pwd`: | |
235 | fi | |
236 | for f in $mpwfiles ; do | |
237 | if [ -n "${verbose}" ] ; then | |
238 | echo -n " " $f | |
239 | fi | |
240 | sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new | |
241 | if [ -n "${safe}" ] ; then | |
242 | mv $f .Recover | |
243 | fi | |
244 | mv new $f | |
245 | done | |
246 | chmod a+x config.bfd | |
247 | fi | |
248 | ||
249 | ||
08942d11 | 250 | # End of file. |