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