Rearrange ChangeLog files by years.
[external/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 d30v_files="cpu-d30v.c elf32-d30v.c"
19
20 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21         keep_these_too="${d30v_files} ${keep_these_too}"
22 else
23         lose_these_too="${d30v_files} ${lose_these_too}"
24 fi
25
26 tic80_files="cpu-tic80.c coff-tic80.c"
27
28 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
29         keep_these_too="${tic80_files} ${keep_these_too}"
30 else
31         lose_these_too="${tic80_files} ${lose_these_too}"
32 fi
33
34 # All files listed between the "Things-to-keep:" line and the
35 # "Do-last:" 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-9193
45 ChangeLog-9495
46 ChangeLog-9697
47 Makefile.am
48 Makefile.in
49 PORTING
50 README
51 TODO
52 acconfig.h
53 acinclude.m4
54 aclocal.m4
55 aix386-core.c
56 aout-adobe.c
57 aout-arm.c
58 aout-encap.c
59 aout-ns32k.c
60 aout-sparcle.c
61 aout-target.h
62 aout-tic30.c
63 aout0.c
64 aout32.c
65 aout64.c
66 aoutf1.h
67 aoutx.h
68 archive.c
69 archures.c
70 bfd-in.h
71 bfd-in2.h
72 bfd.c
73 binary.c
74 bout.c
75 cache.c
76 cf-i386lynx.c
77 cf-m68klynx.c
78 cf-sparclynx.c
79 cisco-core.c
80 coff-a29k.c
81 coff-alpha.c
82 coff-apollo.c
83 coff-arm.c
84 coff-aux.c
85 coff-go32.c
86 coff-h8300.c
87 coff-h8500.c
88 coff-i386.c
89 coff-i860.c
90 coff-i960.c
91 coff-m68k.c
92 coff-m88k.c
93 coff-mips.c
94 coff-pmac.c
95 coff-ppc.c
96 coff-rs6000.c
97 coff-sh.c
98 coff-sparc.c
99 coff-stgo32.c
100 coff-svm68k.c
101 coff-tic30.c
102 coff-u68k.c
103 coff-w65.c
104 coff-we32k.c
105 coff-z8k.c
106 coffcode.h
107 coffgen.c
108 cofflink.c
109 coffswap.h
110 config.bfd
111 config.in
112 configure
113 configure.bat
114 configure.com
115 configure.host
116 configure.in
117 corefile.c
118 cpu-a29k.c
119 cpu-alpha.c
120 cpu-arc.c
121 cpu-arm.c
122 cpu-d10v.c
123 cpu-h8300.c
124 cpu-h8500.c
125 cpu-hppa.c
126 cpu-i386.c
127 cpu-i860.c
128 cpu-i960.c
129 cpu-m10200.c
130 cpu-m10300.c
131 cpu-m32r.c
132 cpu-m68k.c
133 cpu-m88k.c
134 cpu-mips.c
135 cpu-ns32k.c
136 cpu-powerpc.c
137 cpu-rs6000.c
138 cpu-sh.c
139 cpu-sparc.c
140 cpu-tic30.c
141 cpu-v850.c
142 cpu-vax.c
143 cpu-w65.c
144 cpu-we32k.c
145 cpu-z8k.c
146 demo64.c
147 dep-in.sed
148 doc
149 dwarf2.c
150 ecoff.c
151 ecofflink.c
152 ecoffswap.h
153 elf-bfd.h
154 elf-m10200.c
155 elf-m10300.c
156 elf.c
157 elf32-arc.c
158 elf32-d10v.c
159 elf32-gen.c
160 elf32-hppa.c
161 elf32-hppa.h
162 elf32-i386.c
163 elf32-i860.c
164 elf32-m32r.c
165 elf32-m68k.c
166 elf32-m88k.c
167 elf32-mips.c
168 elf32-ppc.c
169 elf32-sh.c
170 elf32-sparc.c
171 elf32-v850.c
172 elf32.c
173 elf64-alpha.c
174 elf64-gen.c
175 elf64-mips.c
176 elf64-sparc.c
177 elf64.c
178 elfcode.h
179 elfcore.h
180 elflink.c
181 elflink.h
182 elfxx-target.h
183 format.c
184 freebsd.h
185 gen-aout.c
186 genlink.h
187 go32stub.h
188 hash.c
189 host-aout.c
190 hosts
191 hp300bsd.c
192 hp300hpux.c
193 hppa_stubs.h
194 hppabsd-core.c
195 hpux-core.c
196 i386aout.c
197 i386bsd.c
198 i386dynix.c
199 i386freebsd.c
200 i386linux.c
201 i386lynx.c
202 i386mach3.c
203 i386msdos.c
204 i386netbsd.c
205 i386os9k.c
206 ieee.c
207 ihex.c
208 init.c
209 irix-core.c
210 libaout.h
211 libbfd-in.h
212 libbfd.c
213 libbfd.h
214 libcoff-in.h
215 libcoff.h
216 libecoff.h
217 libhppa.h
218 libieee.h
219 libnlm.h
220 liboasys.h
221 linker.c
222 lynx-core.c
223 m68k4knetbsd.c
224 m68klinux.c
225 m68klynx.c
226 m68knetbsd.c
227 m88kmach3.c
228 makefile.dos
229 makefile.vms
230 mipsbsd.c
231 mpw-config.in
232 mpw-make.sed
233 netbsd-core.c
234 netbsd.h
235 newsos3.c
236 nlm-target.h
237 nlm.c
238 nlm32-alpha.c
239 nlm32-i386.c
240 nlm32-ppc.c
241 nlm32-sparc.c
242 nlm32.c
243 nlm64.c
244 nlmcode.h
245 nlmswap.h
246 ns32k.h
247 ns32knetbsd.c
248 oasys.c
249 opncls.c
250 osf-core.c
251 pc532-mach.c
252 pe-arm.c
253 pe-i386.c
254 pe-ppc.c
255 pei-arm.c
256 pei-i386.c
257 pei-ppc.c
258 peicode.h
259 po
260 ppcboot.c
261 ptrace-core.c
262 reloc.c
263 reloc16.c
264 riscix.c
265 rs6000-core.c
266 section.c
267 som.c
268 som.h
269 sparclinux.c
270 sparclynx.c
271 sparcnetbsd.c
272 srec.c
273 stab-syms.c
274 stabs.c
275 stamp-h.in
276 sunos.c
277 syms.c
278 sysdep.h
279 targets.c
280 targmatch.sed
281 tekhex.c
282 trad-core.c
283 vaxnetbsd.c
284 versados.c
285 vms.c
286 vms.h
287 vms-gsd.c
288 vms-hdr.c
289 vms-misc.c
290 vms-tir.c
291 xcofflink.c
292
293 Things-to-lose:
294
295
296
297 # The lines between the "Do-last:" line and the end of the file
298 # are executed as a /bin/sh shell script after everything else is
299 # done.
300
301 Do-last:
302
303 am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c"
304 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
305         for i in $am33_files ; do
306                 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
307                         if [ -n "${verbose}" ] ; then
308                                 echo Keeping am33 stuff in $i
309                         fi
310                 fi
311         done
312 else
313         for i in $am33_files ; do
314                 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
315                         if [ -n "${verbose}" ] ; then
316                                 echo Removing traces of \"am33\" from $i...
317                         fi
318                         cp $i new
319                         sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/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 d30v_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
332 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
333         for i in $d30v_files ; do
334                 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
335                         if [ -n "${verbose}" ] ; then
336                                 echo Keeping d30v stuff in $i
337                         fi
338                 fi
339         done
340 else
341         for i in $d30v_files ; do
342                 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
343                         if [ -n "${verbose}" ] ; then
344                                 echo Removing traces of \"d30v\" from $i...
345                         fi
346                         cp $i new
347                         sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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 v850_files="ChangeLog Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h elf32-v850.c cpu-v850.c"
360 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
361         for i in $v850_files ; do
362                 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
363                         if [ -n "${verbose}" ] ; then
364                                 echo Keeping v850e stuff in $i
365                         fi
366                 fi
367         done
368 else
369         for i in $v850_files ; do
370                 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
371                         if [ -n "${verbose}" ] ; then
372                                 echo Removing traces of \"v850e\" from $i...
373                         fi
374                         cp $i new
375                         sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
376                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
377                                 if [ -n "${verbose}" ] ; then
378                                         echo Caching $i in .Recover...
379                                 fi
380                                 mv $i .Recover
381                         fi
382                         mv new $i
383                 fi
384         done
385 fi
386
387 r5900_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-mips.c elf32-mips.c libbfd.h reloc.c"
388 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
389         for i in $r5900_files ; do
390                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
391                         if [ -n "${verbose}" ] ; then
392                                 echo Keeping r5900 stuff in $i
393                         fi
394                 fi
395         done
396 else
397         for i in $r5900_files ; do
398                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
399                         if [ -n "${verbose}" ] ; then
400                                 echo Removing traces of \"r5900\" from $i...
401                         fi
402                         cp $i new
403                         sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
404                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
405                                 if [ -n "${verbose}" ] ; then
406                                         echo Caching $i in .Recover...
407                                 fi
408                                 mv $i .Recover
409                         fi
410                         mv new $i
411                 fi
412         done
413 fi
414
415 tx19_files="archures.c bfd-in2.h cpu-mips.c"
416 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
417         for i in $tx19_files ; do
418                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
419                         if [ -n "${verbose}" ] ; then
420                                 echo Keeping tx19 stuff in $i
421                         fi
422                 fi
423         done
424 else
425         for i in $tx19_files ; do
426                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
427                         if [ -n "${verbose}" ] ; then
428                                 echo Removing traces of \"tx19\" from $i...
429                         fi
430                         cp $i new
431                         sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
432                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
433                                 if [ -n "${verbose}" ] ; then
434                                         echo Caching $i in .Recover...
435                                 fi
436                                 mv $i .Recover
437                         fi
438                         mv new $i
439                 fi
440         done
441 fi
442
443 tx49_files="archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
444 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
445         for i in $tx49_files ; do
446                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
447                         if [ -n "${verbose}" ] ; then
448                                 echo Keeping tx49 stuff in $i
449                         fi
450                 fi
451         done
452 else
453         for i in $tx49_files ; do
454                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
455                         if [ -n "${verbose}" ] ; then
456                                 echo Removing traces of \"tx49\" from $i...
457                         fi
458                         cp $i new
459                         sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
460                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
461                                 if [ -n "${verbose}" ] ; then
462                                         echo Caching $i in .Recover...
463                                 fi
464                                 mv $i .Recover
465                         fi
466                         mv new $i
467                 fi
468         done
469 fi
470
471 tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
472 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
473         for i in $tic80_files ; do
474                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
475                         if [ -n "${verbose}" ] ; then
476                                 echo Keeping tic80 stuff in $i
477                         fi
478                 fi
479         done
480 else
481         for i in $tic80_files ; do
482                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
483                         if [ -n "${verbose}" ] ; then
484                                 echo Removing traces of \"tic80\" from $i...
485                         fi
486                         cp $i new
487                         sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
488                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
489                                 if [ -n "${verbose}" ] ; then
490                                         echo Caching $i in .Recover...
491                                 fi
492                                 mv $i .Recover
493                         fi
494                         mv new $i
495                 fi
496         done
497 fi
498
499 gm_files="ChangeLog ChangeLog.2 config.bfd"
500 if ( echo $* | grep keep\-gm > /dev/null ) ; then
501         for i in $gm_files ; do
502                 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
503                         if [ -n "${verbose}" ] ; then
504                                 echo Keeping gm stuff in $i
505                         fi
506                 fi
507         done
508 else
509         for i in $gm_files ; do
510                 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
511                         if [ -n "${verbose}" ] ; then
512                                 echo Removing traces of \"gm\" from $i...
513                         fi
514                         cp $i new
515                         sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
516                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
517                                 if [ -n "${verbose}" ] ; then
518                                         echo Caching $i in .Recover...
519                                 fi
520                                 mv $i .Recover
521                         fi
522                         mv new $i
523                 fi
524         done
525 fi
526
527 vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c elf32-mips.c"
528 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
529         for i in $vr5400_files ; do
530                 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
531                         if [ -n "${verbose}" ] ; then
532                                 echo Keeping vr5400 stuff in $i
533                         fi
534                 fi
535         done
536 else
537         for i in $vr5400_files ; do
538                 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
539                         if [ -n "${verbose}" ] ; then
540                                 echo Removing traces of \"vr5400\" from $i...
541                         fi
542                         cp $i new
543                         sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
544                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
545                                 if [ -n "${verbose}" ] ; then
546                                         echo Caching $i in .Recover...
547                                 fi
548                                 mv $i .Recover
549                         fi
550                         mv new $i
551                 fi
552         done
553 fi
554
555 vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
556 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
557         for i in $vr4320_files ; do
558                 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
559                         if [ -n "${verbose}" ] ; then
560                                 echo Keeping vr4320 stuff in $i
561                         fi
562                 fi
563         done
564 else
565         for i in $vr4320_files ; do
566                 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
567                         if [ -n "${verbose}" ] ; then
568                                 echo Removing traces of \"vr4320\" from $i...
569                         fi
570                         cp $i new
571                         sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
572                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
573                                 if [ -n "${verbose}" ] ; then
574                                         echo Caching $i in .Recover...
575                                 fi
576                                 mv $i .Recover
577                         fi
578                         mv new $i
579                 fi
580         done
581 fi
582
583 m32rx_files="ChangeLog archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
584 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
585         for i in $m32rx_files ; do
586                 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
587                         if [ -n "${verbose}" ] ; then
588                                 echo Keeping m32rx stuff in $i
589                         fi
590                 fi
591         done
592 else
593         for i in $m32rx_files ; do
594                 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
595                         if [ -n "${verbose}" ] ; then
596                                 echo Removing traces of \"m32rx\" from $i...
597                         fi
598                         cp $i new
599                         sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
600                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
601                                 if [ -n "${verbose}" ] ; then
602                                         echo Caching $i in .Recover...
603                                 fi
604                                 mv $i .Recover
605                         fi
606                         mv new $i
607                 fi
608         done
609 fi
610
611 sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h"
612 if ( echo $* | grep keep\-sky > /dev/null ) ; then
613         for i in $sky_files ; do
614                 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
615                         if [ -n "${verbose}" ] ; then
616                                 echo Keeping sky stuff in $i
617                         fi
618                 fi
619         done
620 else
621         for i in $sky_files ; do
622                 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
623                         if [ -n "${verbose}" ] ; then
624                                 echo Removing traces of \"sky\" from $i...
625                         fi
626                         cp $i new
627                         sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
628                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
629                                 if [ -n "${verbose}" ] ; then
630                                         echo Caching $i in .Recover...
631                                 fi
632                                 mv $i .Recover
633                         fi
634                         mv new $i
635                 fi
636         done
637 fi
638
639 for i in * ; do
640         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
641                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
642         fi
643 done
644
645
646 # This must come after all other sanitizations.  Re-sanitize the .pot
647 # file.
648 if [ -n "${verbose}" ]; then
649    echo Re-computing files for gettext ...
650 fi
651
652 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
653    if [ -n "${verbose}" ]; then
654       echo Caching po/POTFILES.in in .Recover...
655    fi
656    mv po/POTFILES.in po/.Recover
657 fi
658 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
659
660 if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then
661    if [ -n "${verbose}" ]; then
662       echo Caching po/bfd.pot in .Recover...
663    fi
664    mv po/bfd.pot po/.Recover
665 fi
666 # If this fails, Sanitization must fail.
667 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/bfd.pot || exit 1
668
669 # eof