real makefile change - CFILES, dependencies
[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
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
JG
82coff-i386.c
83coff-i960.c
c3e964b9 84coff-m68k.c
156e3852
JG
85coff-m88k.c
86coff-mips.c
63c67f3c 87coff-pmac.c
8d2a09b0 88coff-ppc.c
156e3852 89coff-rs6000.c
9faacb92 90coff-sh.c
e3b5bfa8 91coff-sparc.c
df61743d 92coff-u68k.c
c7551f76 93coff-we32k.c
d468a149 94coff-w65.c
d41ab714 95coff-z8k.c
08942d11 96coffcode.h
075caafd 97coffgen.c
69645d10 98cofflink.c
075caafd 99coffswap.h
14616002 100config.bfd
936b870c 101config.in
7c1a9ec3 102configure
13b351cc 103configure.bat
5a5fa368 104configure.host
c3e964b9 105configure.in
d9e771e3 106corefile.c
c3e964b9
FF
107cpu-a29k.c
108cpu-alpha.c
6c3bc2b8 109cpu-arm.c
c3e964b9
FF
110cpu-h8300.c
111cpu-h8500.c
112cpu-hppa.c
113cpu-i386.c
114cpu-i960.c
115cpu-m68k.c
116cpu-m88k.c
117cpu-mips.c
e26e4fbc 118cpu-ns32k.c
384c1791 119cpu-powerpc.c
c3e964b9
FF
120cpu-rs6000.c
121cpu-sh.c
122cpu-sparc.c
123cpu-vax.c
124cpu-we32k.c
d468a149 125cpu-w65.c
c3e964b9 126cpu-z8k.c
08942d11 127demo64.c
97eb2f0c 128dep-in.sed
c3e964b9 129doc
dae31cf5 130ecoff.c
71efdf83 131ecofflink.c
dae31cf5 132ecoffswap.h
6ab826bd 133elf-bfd.h
cef91d75 134elf.c
d39d83c1 135elf32-gen.c
c268b400
KR
136elf32-hppa.c
137elf32-hppa.h
4743848f
KR
138elf32-i386.c
139elf32-i860.c
140elf32-m68k.c
2c4f2c72
JK
141elf32-m88k.c
142elf32-mips.c
45ccfd58 143elf32-ppc.c
8d936d1f 144elf32-sparc.c
4743848f 145elf32.c
d39d83c1 146elf64-gen.c
66599384 147elf64-sparc.c
4bf86ecb 148elf64.c
4b18dd1e 149elfxx-target.h
ef7e172e 150elfcode.h
ede4eed4
KR
151elfcore.h
152elflink.c
153elflink.h
08942d11 154filemode.c
6f715d66 155format.c
608de555 156gen-aout.c
da6b2d99
ILT
157genlink.h
158hash.c
08942d11 159host-aout.c
90c7c720 160hosts
c3e964b9 161hp300bsd.c
c268b400 162hp300hpux.c
cef91d75 163hppa_stubs.h
8a71bf96 164hppabsd-core.c
3f933620 165hpux-core.c
b7de6963 166i386aout.c
256b39e0 167i386bsd.c
bdf1b511 168i386dynix.c
afff60cd 169i386linux.c
a3f7a777 170i386netbsd.c
aef0bd99 171i386lynx.c
890eafc0 172i386mach3.c
7c2c70f3 173i386msdos.c
f8ffa548 174i386os9k.c
08942d11 175ieee.c
c3e964b9 176init.c
7ce1a446 177irix-core.c
141c97ea 178libaout.h
901c5bfd 179libbfd-in.h
08942d11
RP
180libbfd.c
181libbfd.h
901c5bfd 182libcoff-in.h
08942d11 183libcoff.h
a3b3dbdd 184libecoff.h
76b731f9 185libhppa.h
08942d11 186libieee.h
c3e964b9 187libnlm.h
08942d11 188liboasys.h
da6b2d99 189linker.c
3151f12f 190lynx-core.c
e295a90d 191m68k4knetbsd.c
eefe075d 192m68klynx.c
ec35a1c2 193m68knetbsd.c
56fbe889 194m88kmach3.c
346a6d59 195makefile.dos
044c1ba9 196mipsbsd.c
241d8883 197mpw-config.in
63c67f3c 198mpw-make.sed
08942d11 199newsos3.c
a3f7a777 200netbsd.h
d1f83f44 201nlm-target.h
c3e964b9 202nlm.c
1bbabdad 203nlm32-alpha.c
8fa7a236 204nlm32-i386.c
7ce8b9d1 205nlm32-ppc.c
38f422db 206nlm32-sparc.c
c3e964b9 207nlm32.c
c3e964b9
FF
208nlm64.c
209nlmcode.h
38f422db 210nlmswap.h
a3f7a777 211ns32knetbsd.c
08942d11
RP
212oasys.c
213opncls.c
4346ee0f 214osf-core.c
56fbe889 215pc532-mach.c
a3444c49 216pe-arm.c
b297038d 217pe-i386.c
8d2a09b0 218pe-ppc.c
4e98461f 219pei-arm.c
b297038d 220pei-i386.c
8d2a09b0 221pei-ppc.c
4e98461f 222peicode.h
c236d8b3 223ptrace-core.c
6f715d66 224reloc.c
075caafd 225reloc16.c
6c3bc2b8 226riscix.c
cf15d9e9 227rs6000-core.c
6f715d66 228section.c
66eca5ee
JK
229som.c
230som.h
e3b5bfa8 231sparclynx.c
a3f7a777 232sparcnetbsd.c
08942d11 233srec.c
7de245d3 234stab-syms.c
08942d11 235sunos.c
6f715d66 236syms.c
b7577823 237sysdep.h
08942d11 238targets.c
a14b2941 239tekhex.c
08942d11 240trad-core.c
c3c112fc 241versados.c
dd984644 242xcofflink.c
08942d11 243
87756e15
RP
244Things-to-lose:
245
775d4a40 246
08942d11
RP
247Do-last:
248
2ec2c9f4 249i960xl_files="ChangeLog ChangeLog.2 archures.c bfd-in2.h cpu-i960.c coffcode.h"
e26e4fbc
KR
250if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
251 if [ -n "${verbose}" ] ; then
252 echo Keeping i960xl stuff in $i960xl_files.
253 fi
254else
255 if [ -n "${verbose}" ]; then
256 echo -n Cleaning i960xl in `pwd`:
257 fi
258 for f in $i960xl_files ; do
259 if [ -n "${verbose}" ] ; then
260 echo -n " " $f
261 fi
262 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
263 if [ -n "${safe}" ] ; then
264 mv $f .Recover
265 fi
266 mv new $f
267 done
268fi
269
2ec2c9f4 270rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h"
03c4ce2f
MT
271if ( echo $* | grep keep\-rce > /dev/null ) ; then
272 for i in $rce_files ; do
273 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 274 if [ -n "${verbose}" ] ; then
03c4ce2f 275 echo Keeping rce stuff in $i
5c680afd
MT
276 fi
277 fi
278 done
279else
03c4ce2f
MT
280 for i in $rce_files ; do
281 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 282 if [ -n "${verbose}" ] ; then
03c4ce2f 283 echo Removing traces of \"rce\" from $i...
5c680afd
MT
284 fi
285 cp $i new
03c4ce2f 286 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
5c680afd
MT
287 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
288 if [ -n "${verbose}" ] ; then
289 echo Caching $i in .Recover...
290 fi
291 mv $i .Recover
292 fi
293 mv new $i
294 fi
295 done
296fi
297
2ec2c9f4 298arc_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
299if ( echo $* | grep keep\-arc > /dev/null ) ; then
300 for i in $arc_files ; do
301 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
302 if [ -n "${verbose}" ] ; then
303 echo Keeping arc stuff in $i
304 fi
305 fi
306 done
307else
308 for i in $arc_files ; do
309 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Removing traces of \"arc\" from $i...
312 fi
313 cp $i new
314 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
315 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
316 if [ -n "${verbose}" ] ; then
317 echo Caching $i in .Recover...
318 fi
319 mv $i .Recover
320 fi
321 mv new $i
322 fi
323 done
324fi
325
d6d44ef9
SG
326gm_files="ChangeLog ChangeLog.2 config.bfd"
327if ( echo $* | grep keep\-gm > /dev/null ) ; then
328 for i in $gm_files ; do
329 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
330 if [ -n "${verbose}" ] ; then
331 echo Keeping gm stuff in $i
332 fi
333 fi
334 done
335else
336 for i in $gm_files ; do
337 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
338 if [ -n "${verbose}" ] ; then
339 echo Removing traces of \"gm\" from $i...
340 fi
341 cp $i new
342 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
343 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
344 if [ -n "${verbose}" ] ; then
345 echo Caching $i in .Recover...
346 fi
347 mv $i .Recover
348 fi
349 mv new $i
350 fi
351 done
352fi
353
5c680afd
MT
354for i in * ; do
355 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
356 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
357 fi
358done
359
08942d11 360# End of file.
This page took 0.16059 seconds and 4 git commands to generate.