add new coff-ppc files
[binutils-gdb.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
2
3 # Each directory to survive its way into a release will need a file
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 directory.
15
16 Do-first:
17
18 rce_files="cpu-rce.c aout-rce.c"
19
20 if ( echo $* | grep keep\-rce > /dev/null ) ; then
21 keep_these_too="${rce_files} ${keep_these_too}"
22 else
23 lose_these_too="${rce_files} ${lose_these_too}"
24 fi
25
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
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:
41
42 COPYING
43 ChangeLog
44 ChangeLog.1
45 ChangeLog.2
46 Makefile.in
47 PORTING
48 TODO
49 VERSION
50 acconfig.h
51 aclocal.m4
52 aix386-core.c
53 aout-adobe.c
54 aout-arm.c
55 aout-encap.c
56 aout-ns32k.c
57 aout-target.h
58 aout0.c
59 aout32.c
60 aout64.c
61 aoutf1.h
62 aoutx.h
63 archive.c
64 archures.c
65 bfd-in.h
66 bfd-in2.h
67 bfd.c
68 binary.c
69 bout.c
70 cache.c
71 cf-i386lynx.c
72 cf-m68klynx.c
73 cf-sparclynx.c
74 cisco-core.c
75 coff-a29k.c
76 coff-arm.c
77 coff-alpha.c
78 coff-apollo.c
79 coff-go32.c
80 coff-h8300.c
81 coff-h8500.c
82 coff-i386.c
83 coff-i960.c
84 coff-m68k.c
85 coff-m88k.c
86 coff-mips.c
87 coff-ppc.c
88 coff-rs6000.c
89 coff-sh.c
90 coff-sparc.c
91 coff-u68k.c
92 coff-we32k.c
93 coff-w65.c
94 coff-z8k.c
95 coffcode.h
96 coffgen.c
97 cofflink.c
98 coffswap.h
99 config.bfd
100 config.in
101 configure
102 configure.bat
103 configure.host
104 configure.in
105 core.c
106 cpu-a29k.c
107 cpu-alpha.c
108 cpu-arm.c
109 cpu-h8300.c
110 cpu-h8500.c
111 cpu-hppa.c
112 cpu-i386.c
113 cpu-i960.c
114 cpu-m68k.c
115 cpu-m88k.c
116 cpu-mips.c
117 cpu-ns32k.c
118 cpu-powerpc.c
119 cpu-rs6000.c
120 cpu-sh.c
121 cpu-sparc.c
122 cpu-vax.c
123 cpu-we32k.c
124 cpu-w65.c
125 cpu-z8k.c
126 demo64.c
127 dep-in.sed
128 doc
129 ecoff.c
130 ecofflink.c
131 ecoffswap.h
132 elf.c
133 elf32-gen.c
134 elf32-hppa.c
135 elf32-hppa.h
136 elf32-i386.c
137 elf32-i860.c
138 elf32-m68k.c
139 elf32-m88k.c
140 elf32-mips.c
141 elf32-ppc.c
142 elf32-sparc.c
143 elf32.c
144 elf64-gen.c
145 elf64-sparc.c
146 elf64.c
147 elfxx-target.h
148 elfcode.h
149 elfcore.h
150 elflink.c
151 elflink.h
152 filemode.c
153 format.c
154 gen-aout.c
155 genlink.h
156 hash.c
157 host-aout.c
158 hosts
159 hp300bsd.c
160 hp300hpux.c
161 hppa_stubs.h
162 hppabsd-core.c
163 hpux-core.c
164 i386aout.c
165 i386bsd.c
166 i386dynix.c
167 i386linux.c
168 i386netbsd.c
169 i386lynx.c
170 i386mach3.c
171 i386msdos.c
172 i386os9k.c
173 ieee.c
174 init.c
175 irix-core.c
176 libaout.h
177 libbfd-in.h
178 libbfd.c
179 libbfd.h
180 libcoff-in.h
181 libcoff.h
182 libecoff.h
183 libelf.h
184 libhppa.h
185 libieee.h
186 libnlm.h
187 liboasys.h
188 linker.c
189 lynx-core.c
190 m68klynx.c
191 m68knetbsd.c
192 m88kmach3.c
193 makefile.dos
194 mipsbsd.c
195 mpw-config.in
196 mpw-make.in
197 newsos3.c
198 netbsd.h
199 nlm-target.h
200 nlm.c
201 nlm32-alpha.c
202 nlm32-i386.c
203 nlm32-ppc.c
204 nlm32-sparc.c
205 nlm32.c
206 nlm64.c
207 nlmcode.h
208 nlmswap.h
209 ns32knetbsd.c
210 oasys.c
211 opncls.c
212 osf-core.c
213 pc532-mach.c
214 pe-arm.c
215 pe-i386.c
216 pe-ppc.c
217 pei-arm.c
218 pei-i386.c
219 pei-ppc.c
220 peicode.h
221 ptrace-core.c
222 reloc.c
223 reloc16.c
224 riscix.c
225 rs6000-core.c
226 section.c
227 som.c
228 som.h
229 sparclynx.c
230 sparcnetbsd.c
231 srec.c
232 stab-syms.c
233 sunos.c
234 syms.c
235 sysdep.h
236 targets.c
237 tekhex.c
238 trad-core.c
239 versados.c
240
241 Things-to-lose:
242
243
244 Do-last:
245
246 i960xl_files="ChangeLog ChangeLog.2 archures.c bfd-in2.h cpu-i960.c coffcode.h"
247 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
248 if [ -n "${verbose}" ] ; then
249 echo Keeping i960xl stuff in $i960xl_files.
250 fi
251 else
252 if [ -n "${verbose}" ]; then
253 echo -n Cleaning i960xl in `pwd`:
254 fi
255 for f in $i960xl_files ; do
256 if [ -n "${verbose}" ] ; then
257 echo -n " " $f
258 fi
259 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
260 if [ -n "${safe}" ] ; then
261 mv $f .Recover
262 fi
263 mv new $f
264 done
265 fi
266
267 rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h"
268 if ( echo $* | grep keep\-rce > /dev/null ) ; then
269 for i in $rce_files ; do
270 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
271 if [ -n "${verbose}" ] ; then
272 echo Keeping rce stuff in $i
273 fi
274 fi
275 done
276 else
277 for i in $rce_files ; do
278 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
279 if [ -n "${verbose}" ] ; then
280 echo Removing traces of \"rce\" from $i...
281 fi
282 cp $i new
283 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
284 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
285 if [ -n "${verbose}" ] ; then
286 echo Caching $i in .Recover...
287 fi
288 mv $i .Recover
289 fi
290 mv new $i
291 fi
292 done
293 fi
294
295 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"
296 if ( echo $* | grep keep\-arc > /dev/null ) ; then
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 Keeping arc stuff in $i
301 fi
302 fi
303 done
304 else
305 for i in $arc_files ; do
306 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
307 if [ -n "${verbose}" ] ; then
308 echo Removing traces of \"arc\" from $i...
309 fi
310 cp $i new
311 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
312 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
313 if [ -n "${verbose}" ] ; then
314 echo Caching $i in .Recover...
315 fi
316 mv $i .Recover
317 fi
318 mv new $i
319 fi
320 done
321 fi
322
323 for i in * ; do
324 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
325 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
326 fi
327 done
328
329 # End of file.