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