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