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