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