Commit | Line | Data |
---|---|---|
8b0f1c20 | 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 | |
8b0f1c20 | 14 | # done in this directory. |
08942d11 RP |
15 | |
16 | Do-first: | |
17 | ||
03c4ce2f | 18 | rce_files="cpu-rce.c aout-rce.c" |
d94aca1a | 19 | |
03c4ce2f MT |
20 | if ( echo $* | grep keep\-rce > /dev/null ) ; then |
21 | keep_these_too="${rce_files} ${keep_these_too}" | |
d94aca1a | 22 | else |
03c4ce2f | 23 | lose_these_too="${rce_files} ${lose_these_too}" |
d94aca1a MT |
24 | fi |
25 | ||
05cedcf6 DE |
26 | arc_files="cpu-arc.c elf32-arc.c" |
27 | ||
28 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
29 | keep_these_too="${arc_files} ${keep_these_too}" | |
30 | else | |
31 | lose_these_too="${arc_files} ${lose_these_too}" | |
32 | fi | |
33 | ||
08942d11 RP |
34 | # All files listed between the "Things-to-keep:" line and the |
35 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
36 | # Directories listed in this section will have their own Sanitize | |
37 | # called. Directories not listed will be removed in their entirety | |
38 | # with rm -rf. | |
39 | ||
40 | Things-to-keep: | |
87756e15 | 41 | |
08942d11 RP |
42 | COPYING |
43 | ChangeLog | |
ceeca31c | 44 | ChangeLog.1 |
08942d11 | 45 | Makefile.in |
c3e964b9 | 46 | PORTING |
08942d11 | 47 | TODO |
8c1891af | 48 | VERSION |
60ac749c | 49 | aix386-core.c |
c3e964b9 | 50 | aout-adobe.c |
ff15324f | 51 | aout-arm.c |
c3e964b9 | 52 | aout-encap.c |
56fbe889 | 53 | aout-ns32k.c |
c3e964b9 | 54 | aout-target.h |
77d11284 | 55 | aout0.c |
08942d11 RP |
56 | aout32.c |
57 | aout64.c | |
58 | aoutf1.h | |
08942d11 RP |
59 | aoutx.h |
60 | archive.c | |
61 | archures.c | |
901c5bfd | 62 | bfd-in.h |
b9653d81 | 63 | bfd-in2.h |
08942d11 | 64 | bfd.c |
c768bd3f | 65 | binary.c |
08942d11 RP |
66 | bout.c |
67 | cache.c | |
e3b5bfa8 SS |
68 | cf-i386lynx.c |
69 | cf-m68klynx.c | |
70 | cf-sparclynx.c | |
5d70e4d1 | 71 | cisco-core.c |
156e3852 | 72 | coff-a29k.c |
a3444c49 | 73 | coff-arm.c |
c3e964b9 | 74 | coff-alpha.c |
97eb2f0c | 75 | coff-apollo.c |
c06e55d9 | 76 | coff-go32.c |
71e34032 | 77 | coff-h8300.c |
ff975a2c | 78 | coff-h8500.c |
156e3852 JG |
79 | coff-i386.c |
80 | coff-i960.c | |
c3e964b9 | 81 | coff-m68k.c |
156e3852 JG |
82 | coff-m88k.c |
83 | coff-mips.c | |
84 | coff-rs6000.c | |
9faacb92 | 85 | coff-sh.c |
e3b5bfa8 | 86 | coff-sparc.c |
df61743d | 87 | coff-u68k.c |
c7551f76 | 88 | coff-we32k.c |
d468a149 | 89 | coff-w65.c |
d41ab714 | 90 | coff-z8k.c |
08942d11 | 91 | coffcode.h |
075caafd | 92 | coffgen.c |
69645d10 | 93 | cofflink.c |
075caafd | 94 | coffswap.h |
fb1c4481 | 95 | config |
14616002 | 96 | config.bfd |
7c1a9ec3 | 97 | configure |
13b351cc | 98 | configure.bat |
5a5fa368 | 99 | configure.host |
c3e964b9 | 100 | configure.in |
6f715d66 | 101 | core.c |
c3e964b9 FF |
102 | cpu-a29k.c |
103 | cpu-alpha.c | |
6c3bc2b8 | 104 | cpu-arm.c |
c3e964b9 FF |
105 | cpu-h8300.c |
106 | cpu-h8500.c | |
107 | cpu-hppa.c | |
108 | cpu-i386.c | |
109 | cpu-i960.c | |
110 | cpu-m68k.c | |
111 | cpu-m88k.c | |
112 | cpu-mips.c | |
e26e4fbc | 113 | cpu-ns32k.c |
384c1791 | 114 | cpu-powerpc.c |
c3e964b9 FF |
115 | cpu-rs6000.c |
116 | cpu-sh.c | |
117 | cpu-sparc.c | |
118 | cpu-vax.c | |
119 | cpu-we32k.c | |
d468a149 | 120 | cpu-w65.c |
c3e964b9 | 121 | cpu-z8k.c |
08942d11 | 122 | demo64.c |
97eb2f0c | 123 | dep-in.sed |
c3e964b9 | 124 | doc |
dae31cf5 | 125 | ecoff.c |
71efdf83 | 126 | ecofflink.c |
dae31cf5 | 127 | ecoffswap.h |
cef91d75 | 128 | elf.c |
d39d83c1 | 129 | elf32-gen.c |
c268b400 KR |
130 | elf32-hppa.c |
131 | elf32-hppa.h | |
4743848f KR |
132 | elf32-i386.c |
133 | elf32-i860.c | |
134 | elf32-m68k.c | |
2c4f2c72 JK |
135 | elf32-m88k.c |
136 | elf32-mips.c | |
45ccfd58 | 137 | elf32-ppc.c |
8d936d1f | 138 | elf32-sparc.c |
4743848f | 139 | elf32.c |
d39d83c1 | 140 | elf64-gen.c |
66599384 | 141 | elf64-sparc.c |
4bf86ecb | 142 | elf64.c |
4b18dd1e | 143 | elfxx-target.h |
ef7e172e | 144 | elfcode.h |
ede4eed4 KR |
145 | elfcore.h |
146 | elflink.c | |
147 | elflink.h | |
08942d11 | 148 | filemode.c |
6f715d66 | 149 | format.c |
608de555 | 150 | gen-aout.c |
da6b2d99 ILT |
151 | genlink.h |
152 | hash.c | |
08942d11 | 153 | host-aout.c |
90c7c720 | 154 | hosts |
c3e964b9 | 155 | hp300bsd.c |
c268b400 | 156 | hp300hpux.c |
cef91d75 | 157 | hppa_stubs.h |
8a71bf96 | 158 | hppabsd-core.c |
3f933620 | 159 | hpux-core.c |
b7de6963 | 160 | i386aout.c |
256b39e0 | 161 | i386bsd.c |
bdf1b511 | 162 | i386dynix.c |
afff60cd | 163 | i386linux.c |
a3f7a777 | 164 | i386netbsd.c |
aef0bd99 | 165 | i386lynx.c |
890eafc0 | 166 | i386mach3.c |
7c2c70f3 | 167 | i386msdos.c |
f8ffa548 | 168 | i386os9k.c |
08942d11 | 169 | ieee.c |
c3e964b9 | 170 | init.c |
7ce1a446 | 171 | irix-core.c |
141c97ea | 172 | libaout.h |
901c5bfd | 173 | libbfd-in.h |
08942d11 RP |
174 | libbfd.c |
175 | libbfd.h | |
901c5bfd | 176 | libcoff-in.h |
08942d11 | 177 | libcoff.h |
a3b3dbdd | 178 | libecoff.h |
c3e964b9 | 179 | libelf.h |
76b731f9 | 180 | libhppa.h |
08942d11 | 181 | libieee.h |
c3e964b9 | 182 | libnlm.h |
08942d11 | 183 | liboasys.h |
da6b2d99 | 184 | linker.c |
3151f12f | 185 | lynx-core.c |
eefe075d | 186 | m68klynx.c |
ec35a1c2 | 187 | m68knetbsd.c |
56fbe889 | 188 | m88kmach3.c |
346a6d59 | 189 | makefile.dos |
044c1ba9 | 190 | mipsbsd.c |
241d8883 SS |
191 | mpw-config.in |
192 | mpw-make.in | |
08942d11 | 193 | newsos3.c |
a3f7a777 | 194 | netbsd.h |
d1f83f44 | 195 | nlm-target.h |
c3e964b9 | 196 | nlm.c |
1bbabdad | 197 | nlm32-alpha.c |
8fa7a236 | 198 | nlm32-i386.c |
7ce8b9d1 | 199 | nlm32-ppc.c |
38f422db | 200 | nlm32-sparc.c |
c3e964b9 | 201 | nlm32.c |
c3e964b9 FF |
202 | nlm64.c |
203 | nlmcode.h | |
38f422db | 204 | nlmswap.h |
a3f7a777 | 205 | ns32knetbsd.c |
08942d11 RP |
206 | oasys.c |
207 | opncls.c | |
4346ee0f | 208 | osf-core.c |
56fbe889 | 209 | pc532-mach.c |
a3444c49 SC |
210 | pe-arm.c |
211 | pei-arm.c | |
b297038d SC |
212 | pe-i386.c |
213 | pei-i386.c | |
c236d8b3 | 214 | ptrace-core.c |
6f715d66 | 215 | reloc.c |
075caafd | 216 | reloc16.c |
6c3bc2b8 | 217 | riscix.c |
cf15d9e9 | 218 | rs6000-core.c |
6f715d66 | 219 | section.c |
66eca5ee JK |
220 | som.c |
221 | som.h | |
e3b5bfa8 | 222 | sparclynx.c |
a3f7a777 | 223 | sparcnetbsd.c |
08942d11 | 224 | srec.c |
7de245d3 | 225 | stab-syms.c |
08942d11 | 226 | sunos.c |
6f715d66 | 227 | syms.c |
08942d11 | 228 | targets.c |
a14b2941 | 229 | tekhex.c |
08942d11 | 230 | trad-core.c |
c3c112fc | 231 | versados.c |
08942d11 | 232 | |
87756e15 RP |
233 | Things-to-lose: |
234 | ||
775d4a40 | 235 | |
08942d11 RP |
236 | Do-last: |
237 | ||
e26e4fbc KR |
238 | i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h" |
239 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
240 | if [ -n "${verbose}" ] ; then | |
241 | echo Keeping i960xl stuff in $i960xl_files. | |
242 | fi | |
243 | else | |
244 | if [ -n "${verbose}" ]; then | |
245 | echo -n Cleaning i960xl in `pwd`: | |
246 | fi | |
247 | for f in $i960xl_files ; do | |
248 | if [ -n "${verbose}" ] ; then | |
249 | echo -n " " $f | |
250 | fi | |
251 | sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new | |
252 | if [ -n "${safe}" ] ; then | |
253 | mv $f .Recover | |
254 | fi | |
255 | mv new $f | |
256 | done | |
257 | fi | |
258 | ||
5cb0993c | 259 | rce_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h" |
03c4ce2f MT |
260 | if ( echo $* | grep keep\-rce > /dev/null ) ; then |
261 | for i in $rce_files ; do | |
262 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5c680afd | 263 | if [ -n "${verbose}" ] ; then |
03c4ce2f | 264 | echo Keeping rce stuff in $i |
5c680afd MT |
265 | fi |
266 | fi | |
267 | done | |
268 | else | |
03c4ce2f MT |
269 | for i in $rce_files ; do |
270 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5c680afd | 271 | if [ -n "${verbose}" ] ; then |
03c4ce2f | 272 | echo Removing traces of \"rce\" from $i... |
5c680afd MT |
273 | fi |
274 | cp $i new | |
03c4ce2f | 275 | sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new |
5c680afd MT |
276 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
277 | if [ -n "${verbose}" ] ; then | |
278 | echo Caching $i in .Recover... | |
279 | fi | |
280 | mv $i .Recover | |
281 | fi | |
282 | mv new $i | |
283 | fi | |
284 | done | |
285 | fi | |
286 | ||
7c1a9ec3 | 287 | arc_files="ChangeLog Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h" |
05cedcf6 DE |
288 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
289 | for i in $arc_files ; do | |
290 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
291 | if [ -n "${verbose}" ] ; then | |
292 | echo Keeping arc stuff in $i | |
293 | fi | |
294 | fi | |
295 | done | |
296 | else | |
297 | for i in $arc_files ; do | |
298 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
299 | if [ -n "${verbose}" ] ; then | |
300 | echo Removing traces of \"arc\" from $i... | |
301 | fi | |
302 | cp $i new | |
303 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
304 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
305 | if [ -n "${verbose}" ] ; then | |
306 | echo Caching $i in .Recover... | |
307 | fi | |
308 | mv $i .Recover | |
309 | fi | |
310 | mv new $i | |
311 | fi | |
312 | done | |
313 | fi | |
314 | ||
5c680afd MT |
315 | for i in * ; do |
316 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
317 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
318 | fi | |
319 | done | |
320 | ||
08942d11 | 321 | # End of file. |