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