]> Git Repo - binutils.git/blob - bfd/.Sanitize
Tue Apr 1 16:18:05 1997 Klaus Kaempf <[email protected]>
[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 d30v_files="cpu-d30v.c elf32-d30v.c"
27
28 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29         keep_these_too="${d30v_files} ${keep_these_too}"
30 else
31         lose_these_too="${d30v_files} ${lose_these_too}"
32 fi
33
34 v850_files="cpu-v850.c elf32-v850.c"
35
36 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37         keep_these_too="${v850_files} ${keep_these_too}"
38 else
39         lose_these_too="${v850_files} ${lose_these_too}"
40 fi
41
42 tic80_files="cpu-tic80.c coff-tic80.c"
43
44 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45         keep_these_too="${tic80_files} ${keep_these_too}"
46 else
47         lose_these_too="${tic80_files} ${lose_these_too}"
48 fi
49
50 # All files listed between the "Things-to-keep:" line and the
51 # "Files-to-sed:" line will be kept.  All other files will be removed.
52 # Directories listed in this section will have their own Sanitize
53 # called.  Directories not listed will be removed in their entirety
54 # with rm -rf.
55
56 Things-to-keep:
57
58 COPYING
59 ChangeLog
60 ChangeLog.1
61 ChangeLog.2
62 Makefile.in
63 PORTING
64 README
65 TODO
66 VERSION
67 acconfig.h
68 aclocal.m4
69 aix386-core.c
70 aout-adobe.c
71 aout-arm.c
72 aout-encap.c
73 aout-ns32k.c
74 aout-sparcle.c
75 aout-target.h
76 aout0.c
77 aout32.c
78 aout64.c
79 aoutf1.h
80 aoutx.h
81 archive.c
82 archures.c
83 bfd-in.h
84 bfd-in2.h
85 bfd.c
86 binary.c
87 bout.c
88 cache.c
89 cf-i386lynx.c
90 cf-m68klynx.c
91 cf-sparclynx.c
92 cisco-core.c
93 coff-a29k.c
94 coff-alpha.c
95 coff-apollo.c
96 coff-arm.c
97 coff-aux.c
98 coff-go32.c
99 coff-h8300.c
100 coff-h8500.c
101 coff-i386.c
102 coff-i860.c
103 coff-i960.c
104 coff-m68k.c
105 coff-m88k.c
106 coff-mips.c
107 coff-pmac.c
108 coff-ppc.c
109 coff-rs6000.c
110 coff-sh.c
111 coff-sparc.c
112 coff-svm68k.c
113 coff-u68k.c
114 coff-we32k.c
115 coff-w65.c
116 coff-z8k.c
117 coffcode.h
118 coffgen.c
119 cofflink.c
120 coffswap.h
121 config.bfd
122 config.in
123 configure
124 configure.bat
125 configure.com
126 configure.host
127 configure.in
128 corefile.c
129 cpu-a29k.c
130 cpu-alpha.c
131 cpu-arm.c
132 cpu-d10v.c
133 cpu-h8300.c
134 cpu-h8500.c
135 cpu-hppa.c
136 cpu-i386.c
137 cpu-i860.c
138 cpu-i960.c
139 cpu-m32r.c
140 cpu-m68k.c
141 cpu-m88k.c
142 cpu-mips.c
143 cpu-mn10200.c
144 cpu-mn10300.c
145 cpu-ns32k.c
146 cpu-powerpc.c
147 cpu-rs6000.c
148 cpu-sh.c
149 cpu-sparc.c
150 cpu-vax.c
151 cpu-we32k.c
152 cpu-w65.c
153 cpu-z8k.c
154 demo64.c
155 dep-in.sed
156 doc
157 ecoff.c
158 ecofflink.c
159 ecoffswap.h
160 elf-bfd.h
161 elf.c
162 elf32-d10v.c
163 elf32-gen.c
164 elf32-hppa.c
165 elf32-hppa.h
166 elf32-i386.c
167 elf32-i860.c
168 elf32-m32r.c
169 elf32-m68k.c
170 elf32-m88k.c
171 elf32-mips.c
172 elf32-mn10200.c
173 elf32-mn10300.c
174 elf32-ppc.c
175 elf32-sh.c
176 elf32-sparc.c
177 elf32.c
178 elf64-alpha.c
179 elf64-gen.c
180 elf64-mips.c
181 elf64-sparc.c
182 elf64.c
183 elfxx-target.h
184 elfcode.h
185 elfcore.h
186 elflink.c
187 elflink.h
188 evax.h
189 evax-alpha.c
190 evax-egsd.c
191 evax-emh.c
192 evax-etir.c
193 evax-misc.c
194 filemode.c
195 format.c
196 freebsd.h
197 gen-aout.c
198 genlink.h
199 hash.c
200 host-aout.c
201 hosts
202 hp300bsd.c
203 hp300hpux.c
204 hppa_stubs.h
205 hppabsd-core.c
206 hpux-core.c
207 i386aout.c
208 i386bsd.c
209 i386dynix.c
210 i386freebsd.c
211 i386linux.c
212 i386netbsd.c
213 i386lynx.c
214 i386mach3.c
215 i386msdos.c
216 i386os9k.c
217 ieee.c
218 ihex.c
219 init.c
220 irix-core.c
221 libaout.h
222 libbfd-in.h
223 libbfd.c
224 libbfd.h
225 libcoff-in.h
226 libcoff.h
227 libecoff.h
228 libhppa.h
229 libieee.h
230 libnlm.h
231 liboasys.h
232 linker.c
233 lynx-core.c
234 m68k4knetbsd.c
235 m68klinux.c
236 m68klynx.c
237 m68knetbsd.c
238 m88kmach3.c
239 makefile.dos
240 makefile.vms
241 mipsbsd.c
242 mpw-config.in
243 mpw-make.sed
244 newsos3.c
245 netbsd-core.c
246 netbsd.h
247 nlm-target.h
248 nlm.c
249 nlm32-alpha.c
250 nlm32-i386.c
251 nlm32-ppc.c
252 nlm32-sparc.c
253 nlm32.c
254 nlm64.c
255 nlmcode.h
256 nlmswap.h
257 ns32k.h
258 ns32knetbsd.c
259 oasys.c
260 opncls.c
261 osf-core.c
262 pc532-mach.c
263 pe-arm.c
264 pe-i386.c
265 pe-ppc.c
266 pei-arm.c
267 pei-i386.c
268 pei-ppc.c
269 peicode.h
270 ppcboot.c
271 ptrace-core.c
272 reloc.c
273 reloc16.c
274 riscix.c
275 rs6000-core.c
276 section.c
277 som.c
278 som.h
279 sparclinux.c
280 sparclynx.c
281 sparcnetbsd.c
282 srec.c
283 stabs.c
284 stab-syms.c
285 sunos.c
286 syms.c
287 sysdep.h
288 targets.c
289 targmatch.sed
290 tekhex.c
291 trad-core.c
292 versados.c
293 xcofflink.c
294
295 Things-to-lose:
296
297
298 Do-last:
299
300 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"
301 if ( echo $* | grep keep\-arc > /dev/null ) ; then
302         for i in $arc_files ; do
303                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
304                         if [ -n "${verbose}" ] ; then
305                                 echo Keeping arc stuff in $i
306                         fi
307                 fi
308         done
309 else
310         for i in $arc_files ; do
311                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
312                         if [ -n "${verbose}" ] ; then
313                                 echo Removing traces of \"arc\" from $i...
314                         fi
315                         cp $i new
316                         sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
317                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
318                                 if [ -n "${verbose}" ] ; then
319                                         echo Caching $i in .Recover...
320                                 fi
321                                 mv $i .Recover
322                         fi
323                         mv new $i
324                 fi
325         done
326 fi
327
328 d30v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
329 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
330         for i in $d30v_files ; do
331                 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
332                         if [ -n "${verbose}" ] ; then
333                                 echo Keeping d30v stuff in $i
334                         fi
335                 fi
336         done
337 else
338         for i in $d30v_files ; do
339                 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
340                         if [ -n "${verbose}" ] ; then
341                                 echo Removing traces of \"d30v\" from $i...
342                         fi
343                         cp $i new
344                         sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
345                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
346                                 if [ -n "${verbose}" ] ; then
347                                         echo Caching $i in .Recover...
348                                 fi
349                                 mv $i .Recover
350                         fi
351                         mv new $i
352                 fi
353         done
354 fi
355
356 v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
357 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
358         for i in $v850_files ; do
359                 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
360                         if [ -n "${verbose}" ] ; then
361                                 echo Keeping v850 stuff in $i
362                         fi
363                 fi
364         done
365 else
366         for i in $v850_files ; do
367                 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
368                         if [ -n "${verbose}" ] ; then
369                                 echo Removing traces of \"v850\" from $i...
370                         fi
371                         cp $i new
372                         sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
373                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
374                                 if [ -n "${verbose}" ] ; then
375                                         echo Caching $i in .Recover...
376                                 fi
377                                 mv $i .Recover
378                         fi
379                         mv new $i
380                 fi
381         done
382 fi
383
384 r5900_files="ChangeLog config.bfd"
385 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
386         for i in $r5900_files ; do
387                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
388                         if [ -n "${verbose}" ] ; then
389                                 echo Keeping r5900 stuff in $i
390                         fi
391                 fi
392         done
393 else
394         for i in $r5900_files ; do
395                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
396                         if [ -n "${verbose}" ] ; then
397                                 echo Removing traces of \"r5900\" from $i...
398                         fi
399                         cp $i new
400                         sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
401                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
402                                 if [ -n "${verbose}" ] ; then
403                                         echo Caching $i in .Recover...
404                                 fi
405                                 mv $i .Recover
406                         fi
407                         mv new $i
408                 fi
409         done
410 fi
411
412 tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h"
413 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
414         for i in $tic80_files ; do
415                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
416                         if [ -n "${verbose}" ] ; then
417                                 echo Keeping tic80 stuff in $i
418                         fi
419                 fi
420         done
421 else
422         for i in $tic80_files ; do
423                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
424                         if [ -n "${verbose}" ] ; then
425                                 echo Removing traces of \"tic80\" from $i...
426                         fi
427                         cp $i new
428                         sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
429                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
430                                 if [ -n "${verbose}" ] ; then
431                                         echo Caching $i in .Recover...
432                                 fi
433                                 mv $i .Recover
434                         fi
435                         mv new $i
436                 fi
437         done
438 fi
439
440 gm_files="ChangeLog ChangeLog.2 config.bfd"
441 if ( echo $* | grep keep\-gm > /dev/null ) ; then
442         for i in $gm_files ; do
443                 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
444                         if [ -n "${verbose}" ] ; then
445                                 echo Keeping gm stuff in $i
446                         fi
447                 fi
448         done
449 else
450         for i in $gm_files ; do
451                 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
452                         if [ -n "${verbose}" ] ; then
453                                 echo Removing traces of \"gm\" from $i...
454                         fi
455                         cp $i new
456                         sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
457                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
458                                 if [ -n "${verbose}" ] ; then
459                                         echo Caching $i in .Recover...
460                                 fi
461                                 mv $i .Recover
462                         fi
463                         mv new $i
464                 fi
465         done
466 fi
467
468 for i in * ; do
469         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
470                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
471         fi
472 done
473
474 # End of file.
This page took 0.051713 seconds and 4 git commands to generate.