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