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