start-sanitize-d10v
[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 d10v_files="cpu-d10v.c elf32-d10v.c"
27
28 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d10v_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-alpha.c
77 coff-apollo.c
78 coff-arm.c
79 coff-aux.c
80 coff-go32.c
81 coff-h8300.c
82 coff-h8500.c
83 coff-i386.c
84 coff-i860.c
85 coff-i960.c
86 coff-m68k.c
87 coff-m88k.c
88 coff-mips.c
89 coff-pmac.c
90 coff-ppc.c
91 coff-rs6000.c
92 coff-sh.c
93 coff-sparc.c
94 coff-u68k.c
95 coff-we32k.c
96 coff-w65.c
97 coff-z8k.c
98 coffcode.h
99 coffgen.c
100 cofflink.c
101 coffswap.h
102 config.bfd
103 config.h-vms
104 config.in
105 configure
106 configure.bat
107 configure.host
108 configure.in
109 corefile.c
110 cpu-a29k.c
111 cpu-alpha.c
112 cpu-arm.c
113 cpu-h8300.c
114 cpu-h8500.c
115 cpu-hppa.c
116 cpu-i386.c
117 cpu-i860.c
118 cpu-i960.c
119 cpu-m68k.c
120 cpu-m88k.c
121 cpu-mips.c
122 cpu-ns32k.c
123 cpu-powerpc.c
124 cpu-rs6000.c
125 cpu-sh.c
126 cpu-sparc.c
127 cpu-vax.c
128 cpu-we32k.c
129 cpu-w65.c
130 cpu-z8k.c
131 demo64.c
132 dep-in.sed
133 doc
134 ecoff.c
135 ecofflink.c
136 ecoffswap.h
137 elf-bfd.h
138 elf.c
139 elf32-gen.c
140 elf32-hppa.c
141 elf32-hppa.h
142 elf32-i386.c
143 elf32-i860.c
144 elf32-m68k.c
145 elf32-m88k.c
146 elf32-mips.c
147 elf32-ppc.c
148 elf32-sparc.c
149 elf32.c
150 elf64-alpha.c
151 elf64-gen.c
152 elf64-mips.c
153 elf64-sparc.c
154 elf64.c
155 elfxx-target.h
156 elfcode.h
157 elfcore.h
158 elflink.c
159 elflink.h
160 evax.h
161 evax-alpha.c
162 evax-egsd.c
163 evax-emh.c
164 evax-etir.c
165 evax-misc.c
166 filemode.c
167 format.c
168 freebsd.h
169 gen-aout.c
170 genlink.h
171 hash.c
172 host-aout.c
173 hosts
174 hp300bsd.c
175 hp300hpux.c
176 hppa_stubs.h
177 hppabsd-core.c
178 hpux-core.c
179 i386aout.c
180 i386bsd.c
181 i386dynix.c
182 i386freebsd.c
183 i386linux.c
184 i386netbsd.c
185 i386lynx.c
186 i386mach3.c
187 i386msdos.c
188 i386os9k.c
189 ieee.c
190 ihex.c
191 init.c
192 irix-core.c
193 libaout.h
194 libbfd-in.h
195 libbfd.c
196 libbfd.h
197 libcoff-in.h
198 libcoff.h
199 libecoff.h
200 libhppa.h
201 libieee.h
202 libnlm.h
203 liboasys.h
204 linker.c
205 lynx-core.c
206 m68k4knetbsd.c
207 m68klinux.c
208 m68klynx.c
209 m68knetbsd.c
210 m88kmach3.c
211 makefile.dos
212 makefile.vms
213 mipsbsd.c
214 mpw-config.in
215 mpw-make.sed
216 newsos3.c
217 netbsd-core.c
218 netbsd.h
219 nlm-target.h
220 nlm.c
221 nlm32-alpha.c
222 nlm32-i386.c
223 nlm32-ppc.c
224 nlm32-sparc.c
225 nlm32.c
226 nlm64.c
227 nlmcode.h
228 nlmswap.h
229 ns32k.h
230 ns32knetbsd.c
231 oasys.c
232 opncls.c
233 osf-core.c
234 pc532-mach.c
235 pe-arm.c
236 pe-i386.c
237 pe-ppc.c
238 pei-arm.c
239 pei-i386.c
240 pei-ppc.c
241 peicode.h
242 ppcboot.c
243 ptrace-core.c
244 reloc.c
245 reloc16.c
246 riscix.c
247 rs6000-core.c
248 section.c
249 som.c
250 som.h
251 sparclynx.c
252 sparcnetbsd.c
253 srec.c
254 stabs.c
255 stab-syms.c
256 sunos.c
257 syms.c
258 sysdep.h
259 targets.c
260 tekhex.c
261 trad-core.c
262 versados.c
263 xcofflink.c
264
265 Things-to-lose:
266
267
268 Do-last:
269
270 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"
271 if ( echo $* | grep keep\-arc > /dev/null ) ; then
272 for i in $arc_files ; do
273 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
274 if [ -n "${verbose}" ] ; then
275 echo Keeping arc stuff in $i
276 fi
277 fi
278 done
279 else
280 for i in $arc_files ; do
281 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
282 if [ -n "${verbose}" ] ; then
283 echo Removing traces of \"arc\" from $i...
284 fi
285 cp $i new
286 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
287 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
288 if [ -n "${verbose}" ] ; then
289 echo Caching $i in .Recover...
290 fi
291 mv $i .Recover
292 fi
293 mv new $i
294 fi
295 done
296 fi
297
298 d10v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
299 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
300 for i in $d10v_files ; do
301 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
302 if [ -n "${verbose}" ] ; then
303 echo Keeping d10v stuff in $i
304 fi
305 fi
306 done
307 else
308 for i in $d10v_files ; do
309 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Removing traces of \"d10v\" from $i...
312 fi
313 cp $i new
314 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
315 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
316 if [ -n "${verbose}" ] ; then
317 echo Caching $i in .Recover...
318 fi
319 mv $i .Recover
320 fi
321 mv new $i
322 fi
323 done
324 fi
325
326 gm_files="ChangeLog ChangeLog.2 config.bfd"
327 if ( echo $* | grep keep\-gm > /dev/null ) ; then
328 for i in $gm_files ; do
329 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
330 if [ -n "${verbose}" ] ; then
331 echo Keeping gm stuff in $i
332 fi
333 fi
334 done
335 else
336 for i in $gm_files ; do
337 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
338 if [ -n "${verbose}" ] ; then
339 echo Removing traces of \"gm\" from $i...
340 fi
341 cp $i new
342 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
343 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
344 if [ -n "${verbose}" ] ; then
345 echo Caching $i in .Recover...
346 fi
347 mv $i .Recover
348 fi
349 mv new $i
350 fi
351 done
352 fi
353
354 for i in * ; do
355 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
356 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
357 fi
358 done
359
360 # End of file.