update copyright
[deliverable/binutils-gdb.git] / bfd / .Sanitize
CommitLineData
8b0f1c20 1# .Sanitize for devo/bfd.
08942d11 2
a92c5906 3# Each directory to survive its way into a release will need a file
08942d11
RP
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
8b0f1c20 14# done in this directory.
08942d11
RP
15
16Do-first:
17
05cedcf6
DE
18arc_files="cpu-arc.c elf32-arc.c"
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
50bd50d4
MH
26d10v_files="cpu-d10v.c elf32-d10v.c"
27
28if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32fi
33
3ebefb07
DE
34m32r_files="cpu-m32r.c elf32-m32r.c"
35
36if ( echo $* | grep keep\-m32r > /dev/null ) ; then
37 keep_these_too="${m32r_files} ${keep_these_too}"
38else
39 lose_these_too="${m32r_files} ${lose_these_too}"
40fi
41
71bcbd25 42v850_files="cpu-v850.c elf32-v850.c"
0c1d95c7
C
43
44if ( echo $* | grep keep\-v850 > /dev/null ) ; then
45 keep_these_too="${v850_files} ${keep_these_too}"
46else
47 lose_these_too="${v850_files} ${lose_these_too}"
48fi
49
2a0a42d3
FF
50tic80_files="cpu-tic80.c coff-tic80.c"
51
52if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
53 keep_these_too="${tic80_files} ${keep_these_too}"
54else
55 lose_these_too="${tic80_files} ${lose_these_too}"
56fi
57
08942d11
RP
58# All files listed between the "Things-to-keep:" line and the
59# "Files-to-sed:" line will be kept. All other files will be removed.
60# Directories listed in this section will have their own Sanitize
61# called. Directories not listed will be removed in their entirety
62# with rm -rf.
63
64Things-to-keep:
87756e15 65
08942d11
RP
66COPYING
67ChangeLog
ceeca31c 68ChangeLog.1
1613e075 69ChangeLog.2
08942d11 70Makefile.in
c3e964b9 71PORTING
b8760145 72README
08942d11 73TODO
8c1891af 74VERSION
b7577823 75acconfig.h
f515fb2f 76aclocal.m4
60ac749c 77aix386-core.c
c3e964b9 78aout-adobe.c
ff15324f 79aout-arm.c
c3e964b9 80aout-encap.c
56fbe889 81aout-ns32k.c
0cd98b92 82aout-sparcle.c
c3e964b9 83aout-target.h
77d11284 84aout0.c
08942d11
RP
85aout32.c
86aout64.c
87aoutf1.h
08942d11
RP
88aoutx.h
89archive.c
90archures.c
901c5bfd 91bfd-in.h
b9653d81 92bfd-in2.h
08942d11 93bfd.c
c768bd3f 94binary.c
08942d11
RP
95bout.c
96cache.c
e3b5bfa8
SS
97cf-i386lynx.c
98cf-m68klynx.c
99cf-sparclynx.c
5d70e4d1 100cisco-core.c
156e3852 101coff-a29k.c
c3e964b9 102coff-alpha.c
97eb2f0c 103coff-apollo.c
d19df9b5
ILT
104coff-arm.c
105coff-aux.c
c06e55d9 106coff-go32.c
71e34032 107coff-h8300.c
ff975a2c 108coff-h8500.c
156e3852 109coff-i386.c
cf587de8 110coff-i860.c
156e3852 111coff-i960.c
c3e964b9 112coff-m68k.c
156e3852
JG
113coff-m88k.c
114coff-mips.c
63c67f3c 115coff-pmac.c
8d2a09b0 116coff-ppc.c
156e3852 117coff-rs6000.c
9faacb92 118coff-sh.c
e3b5bfa8 119coff-sparc.c
df61743d 120coff-u68k.c
c7551f76 121coff-we32k.c
d468a149 122coff-w65.c
d41ab714 123coff-z8k.c
08942d11 124coffcode.h
075caafd 125coffgen.c
69645d10 126cofflink.c
075caafd 127coffswap.h
14616002 128config.bfd
c3d8e071 129config.h-vms
936b870c 130config.in
7c1a9ec3 131configure
13b351cc 132configure.bat
5a5fa368 133configure.host
c3e964b9 134configure.in
d9e771e3 135corefile.c
c3e964b9
FF
136cpu-a29k.c
137cpu-alpha.c
6c3bc2b8 138cpu-arm.c
c3e964b9
FF
139cpu-h8300.c
140cpu-h8500.c
141cpu-hppa.c
142cpu-i386.c
cf587de8 143cpu-i860.c
c3e964b9
FF
144cpu-i960.c
145cpu-m68k.c
146cpu-m88k.c
147cpu-mips.c
ae1b99e4
JL
148cpu-mn10200.c
149cpu-mn10300.c
e26e4fbc 150cpu-ns32k.c
384c1791 151cpu-powerpc.c
c3e964b9
FF
152cpu-rs6000.c
153cpu-sh.c
154cpu-sparc.c
155cpu-vax.c
156cpu-we32k.c
d468a149 157cpu-w65.c
c3e964b9 158cpu-z8k.c
08942d11 159demo64.c
97eb2f0c 160dep-in.sed
c3e964b9 161doc
dae31cf5 162ecoff.c
71efdf83 163ecofflink.c
dae31cf5 164ecoffswap.h
6ab826bd 165elf-bfd.h
cef91d75 166elf.c
d39d83c1 167elf32-gen.c
c268b400
KR
168elf32-hppa.c
169elf32-hppa.h
4743848f
KR
170elf32-i386.c
171elf32-i860.c
172elf32-m68k.c
2c4f2c72
JK
173elf32-m88k.c
174elf32-mips.c
ae1b99e4
JL
175elf32-mn10200.c
176elf32-mn10300.c
45ccfd58 177elf32-ppc.c
c86158e5 178elf32-sh.c
8d936d1f 179elf32-sparc.c
4743848f 180elf32.c
e8f46717 181elf64-alpha.c
d39d83c1 182elf64-gen.c
d1bf45aa 183elf64-mips.c
66599384 184elf64-sparc.c
4bf86ecb 185elf64.c
4b18dd1e 186elfxx-target.h
ef7e172e 187elfcode.h
ede4eed4
KR
188elfcore.h
189elflink.c
190elflink.h
c3d8e071
ILT
191evax.h
192evax-alpha.c
193evax-egsd.c
194evax-emh.c
195evax-etir.c
196evax-misc.c
08942d11 197filemode.c
6f715d66 198format.c
767f22d5 199freebsd.h
608de555 200gen-aout.c
da6b2d99
ILT
201genlink.h
202hash.c
08942d11 203host-aout.c
90c7c720 204hosts
c3e964b9 205hp300bsd.c
c268b400 206hp300hpux.c
cef91d75 207hppa_stubs.h
8a71bf96 208hppabsd-core.c
3f933620 209hpux-core.c
b7de6963 210i386aout.c
256b39e0 211i386bsd.c
bdf1b511 212i386dynix.c
767f22d5 213i386freebsd.c
afff60cd 214i386linux.c
a3f7a777 215i386netbsd.c
aef0bd99 216i386lynx.c
890eafc0 217i386mach3.c
7c2c70f3 218i386msdos.c
f8ffa548 219i386os9k.c
08942d11 220ieee.c
ffd15489 221ihex.c
c3e964b9 222init.c
7ce1a446 223irix-core.c
141c97ea 224libaout.h
901c5bfd 225libbfd-in.h
08942d11
RP
226libbfd.c
227libbfd.h
901c5bfd 228libcoff-in.h
08942d11 229libcoff.h
a3b3dbdd 230libecoff.h
76b731f9 231libhppa.h
08942d11 232libieee.h
c3e964b9 233libnlm.h
08942d11 234liboasys.h
da6b2d99 235linker.c
3151f12f 236lynx-core.c
e295a90d 237m68k4knetbsd.c
55626bf0 238m68klinux.c
eefe075d 239m68klynx.c
ec35a1c2 240m68knetbsd.c
56fbe889 241m88kmach3.c
346a6d59 242makefile.dos
c3d8e071 243makefile.vms
044c1ba9 244mipsbsd.c
241d8883 245mpw-config.in
63c67f3c 246mpw-make.sed
08942d11 247newsos3.c
fe16107d 248netbsd-core.c
a3f7a777 249netbsd.h
d1f83f44 250nlm-target.h
c3e964b9 251nlm.c
1bbabdad 252nlm32-alpha.c
8fa7a236 253nlm32-i386.c
7ce8b9d1 254nlm32-ppc.c
38f422db 255nlm32-sparc.c
c3e964b9 256nlm32.c
c3e964b9
FF
257nlm64.c
258nlmcode.h
38f422db 259nlmswap.h
c877bdf1 260ns32k.h
a3f7a777 261ns32knetbsd.c
08942d11
RP
262oasys.c
263opncls.c
4346ee0f 264osf-core.c
56fbe889 265pc532-mach.c
a3444c49 266pe-arm.c
b297038d 267pe-i386.c
8d2a09b0 268pe-ppc.c
4e98461f 269pei-arm.c
b297038d 270pei-i386.c
8d2a09b0 271pei-ppc.c
4e98461f 272peicode.h
0d1fcbbb 273ppcboot.c
c236d8b3 274ptrace-core.c
6f715d66 275reloc.c
075caafd 276reloc16.c
6c3bc2b8 277riscix.c
cf15d9e9 278rs6000-core.c
6f715d66 279section.c
66eca5ee
JK
280som.c
281som.h
e3b5bfa8 282sparclynx.c
a3f7a777 283sparcnetbsd.c
08942d11 284srec.c
1726b8f0 285stabs.c
7de245d3 286stab-syms.c
08942d11 287sunos.c
6f715d66 288syms.c
b7577823 289sysdep.h
08942d11 290targets.c
dee99794 291targmatch.sed
a14b2941 292tekhex.c
08942d11 293trad-core.c
c3c112fc 294versados.c
dd984644 295xcofflink.c
08942d11 296
87756e15
RP
297Things-to-lose:
298
775d4a40 299
08942d11
RP
300Do-last:
301
2ec2c9f4 302arc_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
05cedcf6
DE
303if ( echo $* | grep keep\-arc > /dev/null ) ; then
304 for i in $arc_files ; do
305 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
306 if [ -n "${verbose}" ] ; then
307 echo Keeping arc stuff in $i
308 fi
309 fi
310 done
311else
312 for i in $arc_files ; do
313 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
314 if [ -n "${verbose}" ] ; then
315 echo Removing traces of \"arc\" from $i...
316 fi
317 cp $i new
318 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
319 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
50bd50d4
MH
320 if [ -n "${verbose}" ] ; then
321 echo Caching $i in .Recover...
322 fi
323 mv $i .Recover
324 fi
325 mv new $i
326 fi
327 done
328fi
329
330d10v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
331if ( echo $* | grep keep\-d10v > /dev/null ) ; then
332 for i in $d10v_files ; do
333 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
334 if [ -n "${verbose}" ] ; then
335 echo Keeping d10v stuff in $i
336 fi
337 fi
338 done
339else
340 for i in $d10v_files ; do
341 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
342 if [ -n "${verbose}" ] ; then
343 echo Removing traces of \"d10v\" from $i...
344 fi
345 cp $i new
346 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
347 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
348 if [ -n "${verbose}" ] ; then
349 echo Caching $i in .Recover...
350 fi
351 mv $i .Recover
352 fi
353 mv new $i
354 fi
355 done
356fi
357
3ebefb07 358m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h"
66e4c229
DE
359if ( echo $* | grep keep\-m32r > /dev/null ) ; then
360 for i in $m32r_files ; do
361 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
362 if [ -n "${verbose}" ] ; then
363 echo Keeping m32r stuff in $i
364 fi
365 fi
366 done
367else
368 for i in $m32r_files ; do
369 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
370 if [ -n "${verbose}" ] ; then
371 echo Removing traces of \"m32r\" from $i...
372 fi
373 cp $i new
374 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
375 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
376 if [ -n "${verbose}" ] ; then
377 echo Caching $i in .Recover...
378 fi
379 mv $i .Recover
380 fi
381 mv new $i
382 fi
383 done
384fi
385
0c1d95c7
C
386v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
387if ( echo $* | grep keep\-v850 > /dev/null ) ; then
388 for i in $v850_files ; do
389 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
390 if [ -n "${verbose}" ] ; then
391 echo Keeping v850 stuff in $i
392 fi
393 fi
394 done
395else
396 for i in $v850_files ; do
397 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
398 if [ -n "${verbose}" ] ; then
399 echo Removing traces of \"v850\" from $i...
400 fi
401 cp $i new
402 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
403 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
2a0a42d3
FF
404 if [ -n "${verbose}" ] ; then
405 echo Caching $i in .Recover...
406 fi
407 mv $i .Recover
408 fi
409 mv new $i
410 fi
411 done
412fi
413
5a608f5b 414tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c"
2a0a42d3
FF
415if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
416 for i in $tic80_files ; do
417 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
418 if [ -n "${verbose}" ] ; then
419 echo Keeping tic80 stuff in $i
420 fi
421 fi
422 done
423else
424 for i in $tic80_files ; do
425 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
426 if [ -n "${verbose}" ] ; then
427 echo Removing traces of \"tic80\" from $i...
428 fi
429 cp $i new
430 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
431 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
432 if [ -n "${verbose}" ] ; then
433 echo Caching $i in .Recover...
434 fi
435 mv $i .Recover
436 fi
437 mv new $i
438 fi
439 done
440fi
441
d6d44ef9
SG
442gm_files="ChangeLog ChangeLog.2 config.bfd"
443if ( echo $* | grep keep\-gm > /dev/null ) ; then
444 for i in $gm_files ; do
445 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
446 if [ -n "${verbose}" ] ; then
447 echo Keeping gm stuff in $i
448 fi
449 fi
450 done
451else
452 for i in $gm_files ; do
453 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
454 if [ -n "${verbose}" ] ; then
455 echo Removing traces of \"gm\" from $i...
456 fi
457 cp $i new
458 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
459 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
460 if [ -n "${verbose}" ] ; then
461 echo Caching $i in .Recover...
462 fi
463 mv $i .Recover
464 fi
465 mv new $i
466 fi
467 done
468fi
469
5c680afd
MT
470for i in * ; do
471 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
472 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
473 fi
474done
475
08942d11 476# End of file.
This page took 0.311597 seconds and 4 git commands to generate.