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