* gencode.c: Fix various indention & style problems.
[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
71bcbd25 34v850_files="cpu-v850.c elf32-v850.c"
0c1d95c7
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
c86158e5 156elf32-sh.c
8d936d1f 157elf32-sparc.c
4743848f 158elf32.c
e8f46717 159elf64-alpha.c
d39d83c1 160elf64-gen.c
d1bf45aa 161elf64-mips.c
66599384 162elf64-sparc.c
4bf86ecb 163elf64.c
4b18dd1e 164elfxx-target.h
ef7e172e 165elfcode.h
ede4eed4
KR
166elfcore.h
167elflink.c
168elflink.h
c3d8e071
ILT
169evax.h
170evax-alpha.c
171evax-egsd.c
172evax-emh.c
173evax-etir.c
174evax-misc.c
08942d11 175filemode.c
6f715d66 176format.c
767f22d5 177freebsd.h
608de555 178gen-aout.c
da6b2d99
ILT
179genlink.h
180hash.c
08942d11 181host-aout.c
90c7c720 182hosts
c3e964b9 183hp300bsd.c
c268b400 184hp300hpux.c
cef91d75 185hppa_stubs.h
8a71bf96 186hppabsd-core.c
3f933620 187hpux-core.c
b7de6963 188i386aout.c
256b39e0 189i386bsd.c
bdf1b511 190i386dynix.c
767f22d5 191i386freebsd.c
afff60cd 192i386linux.c
a3f7a777 193i386netbsd.c
aef0bd99 194i386lynx.c
890eafc0 195i386mach3.c
7c2c70f3 196i386msdos.c
f8ffa548 197i386os9k.c
08942d11 198ieee.c
ffd15489 199ihex.c
c3e964b9 200init.c
7ce1a446 201irix-core.c
141c97ea 202libaout.h
901c5bfd 203libbfd-in.h
08942d11
RP
204libbfd.c
205libbfd.h
901c5bfd 206libcoff-in.h
08942d11 207libcoff.h
a3b3dbdd 208libecoff.h
76b731f9 209libhppa.h
08942d11 210libieee.h
c3e964b9 211libnlm.h
08942d11 212liboasys.h
da6b2d99 213linker.c
3151f12f 214lynx-core.c
e295a90d 215m68k4knetbsd.c
55626bf0 216m68klinux.c
eefe075d 217m68klynx.c
ec35a1c2 218m68knetbsd.c
56fbe889 219m88kmach3.c
346a6d59 220makefile.dos
c3d8e071 221makefile.vms
044c1ba9 222mipsbsd.c
241d8883 223mpw-config.in
63c67f3c 224mpw-make.sed
08942d11 225newsos3.c
fe16107d 226netbsd-core.c
a3f7a777 227netbsd.h
d1f83f44 228nlm-target.h
c3e964b9 229nlm.c
1bbabdad 230nlm32-alpha.c
8fa7a236 231nlm32-i386.c
7ce8b9d1 232nlm32-ppc.c
38f422db 233nlm32-sparc.c
c3e964b9 234nlm32.c
c3e964b9
FF
235nlm64.c
236nlmcode.h
38f422db 237nlmswap.h
c877bdf1 238ns32k.h
a3f7a777 239ns32knetbsd.c
08942d11
RP
240oasys.c
241opncls.c
4346ee0f 242osf-core.c
56fbe889 243pc532-mach.c
a3444c49 244pe-arm.c
b297038d 245pe-i386.c
8d2a09b0 246pe-ppc.c
4e98461f 247pei-arm.c
b297038d 248pei-i386.c
8d2a09b0 249pei-ppc.c
4e98461f 250peicode.h
0d1fcbbb 251ppcboot.c
c236d8b3 252ptrace-core.c
6f715d66 253reloc.c
075caafd 254reloc16.c
6c3bc2b8 255riscix.c
cf15d9e9 256rs6000-core.c
6f715d66 257section.c
66eca5ee
JK
258som.c
259som.h
e3b5bfa8 260sparclynx.c
a3f7a777 261sparcnetbsd.c
08942d11 262srec.c
1726b8f0 263stabs.c
7de245d3 264stab-syms.c
08942d11 265sunos.c
6f715d66 266syms.c
b7577823 267sysdep.h
08942d11 268targets.c
a14b2941 269tekhex.c
08942d11 270trad-core.c
c3c112fc 271versados.c
dd984644 272xcofflink.c
08942d11 273
87756e15
RP
274Things-to-lose:
275
775d4a40 276
08942d11
RP
277Do-last:
278
2ec2c9f4 279arc_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
280if ( echo $* | grep keep\-arc > /dev/null ) ; then
281 for i in $arc_files ; do
282 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
283 if [ -n "${verbose}" ] ; then
284 echo Keeping arc stuff in $i
285 fi
286 fi
287 done
288else
289 for i in $arc_files ; do
290 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
291 if [ -n "${verbose}" ] ; then
292 echo Removing traces of \"arc\" from $i...
293 fi
294 cp $i new
295 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
296 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
50bd50d4
MH
297 if [ -n "${verbose}" ] ; then
298 echo Caching $i in .Recover...
299 fi
300 mv $i .Recover
301 fi
302 mv new $i
303 fi
304 done
305fi
306
307d10v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
308if ( echo $* | grep keep\-d10v > /dev/null ) ; then
309 for i in $d10v_files ; do
310 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
311 if [ -n "${verbose}" ] ; then
312 echo Keeping d10v stuff in $i
313 fi
314 fi
315 done
316else
317 for i in $d10v_files ; do
318 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
319 if [ -n "${verbose}" ] ; then
320 echo Removing traces of \"d10v\" from $i...
321 fi
322 cp $i new
323 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
324 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
325 if [ -n "${verbose}" ] ; then
326 echo Caching $i in .Recover...
327 fi
328 mv $i .Recover
329 fi
330 mv new $i
331 fi
332 done
333fi
334
335v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
336if ( echo $* | grep keep\-v850 > /dev/null ) ; then
337 for i in $v850_files ; do
338 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
339 if [ -n "${verbose}" ] ; then
340 echo Keeping v850 stuff in $i
341 fi
342 fi
343 done
344else
345 for i in $v850_files ; do
346 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
347 if [ -n "${verbose}" ] ; then
348 echo Removing traces of \"v850\" from $i...
349 fi
350 cp $i new
351 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
352 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
353 if [ -n "${verbose}" ] ; then
354 echo Caching $i in .Recover...
355 fi
356 mv $i .Recover
357 fi
358 mv new $i
359 fi
360 done
361fi
362
d6d44ef9
SG
363gm_files="ChangeLog ChangeLog.2 config.bfd"
364if ( echo $* | grep keep\-gm > /dev/null ) ; then
365 for i in $gm_files ; do
366 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
367 if [ -n "${verbose}" ] ; then
368 echo Keeping gm stuff in $i
369 fi
370 fi
371 done
372else
373 for i in $gm_files ; do
374 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
375 if [ -n "${verbose}" ] ; then
376 echo Removing traces of \"gm\" from $i...
377 fi
378 cp $i new
379 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
380 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
381 if [ -n "${verbose}" ] ; then
382 echo Caching $i in .Recover...
383 fi
384 mv $i .Recover
385 fi
386 mv new $i
387 fi
388 done
389fi
390
5c680afd
MT
391for i in * ; do
392 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
393 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
394 fi
395done
396
08942d11 397# End of file.
This page took 0.227922 seconds and 4 git commands to generate.