* bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
[platform/upstream/binutils.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
19         keep_these_too="elf64-sparc.c"
20 else
21         lose_these_too="elf64-sparc.c"
22 fi
23
24 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
25         keep_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${keep_these_too}"
26 else
27         lose_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${lose_these_too}"
28 fi
29
30 if ( echo $* | grep keep\-gm > /dev/null ) ; then
31         keep_these_too="ChangeLog.gm ${keep_these_too}"
32 else
33         lose_these_too="ChangeLog.gm ${lose_these_too}"
34 fi
35
36 if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
37         keep_these_too="nlm32-ppc.c ${keep_these_too}"
38 else
39         lose_these_too="nlm32-ppc.c ${lose_these_too}"
40 fi
41
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
48 Things-to-keep:
49
50 COPYING
51 ChangeLog
52 ChangeLog.1
53 Makefile.in
54 PORTING
55 TODO
56 VERSION
57 aix386-core.c
58 aout-adobe.c
59 aout-encap.c
60 aout-target.h
61 aout32.c
62 aout64.c
63 aoutf1.h
64 aoutx.h
65 archive.c
66 archures.c
67 bfd-in.h
68 bfd-in2.h
69 bfd.c
70 bout.c
71 cache.c
72 cf-i386lynx.c
73 cf-m68klynx.c
74 cf-sparclynx.c
75 cisco-core.c
76 coff-a29k.c
77 coff-alpha.c
78 coff-apollo.c
79 coff-h8300.c
80 coff-h8500.c
81 coff-i386.c
82 coff-i960.c
83 coff-m68k.c
84 coff-m88k.c
85 coff-mips.c
86 coff-rs6000.c
87 coff-sh.c
88 coff-sparc.c
89 coff-u68k.c
90 coff-we32k.c
91 coff-z8k.c
92 coffcode.h
93 coffgen.c
94 coffswap.h
95 config
96 config.bfd
97 configure.bat
98 configure.host
99 configure.in
100 core.c
101 cpu-a29k.c
102 cpu-alpha.c
103 cpu-h8300.c
104 cpu-h8500.c
105 cpu-hppa.c
106 cpu-i386.c
107 cpu-i960.c
108 cpu-m68k.c
109 cpu-m88k.c
110 cpu-mips.c
111 cpu-powerpc.c
112 cpu-rs6000.c
113 cpu-sh.c
114 cpu-sparc.c
115 cpu-vax.c
116 cpu-we32k.c
117 cpu-z8k.c
118 ctor.c
119 demo64.c
120 dep-in.sed
121 doc
122 ecoff.c
123 ecofflink.c
124 ecoffswap.h
125 elf.c
126 elf32-gen.c
127 elf32-hppa.c
128 elf32-hppa.h
129 elf32-i386.c
130 elf32-i860.c
131 elf32-m68k.c
132 elf32-m88k.c
133 elf32-mips.c
134 elf32-ppc.c
135 elf32-sparc.c
136 elf32-target.h
137 elf32.c
138 elf64-gen.c
139 elf64-target.h
140 elf64.c
141 elfcode.h
142 filemode.c
143 format.c
144 gen-aout.c
145 genlink.h
146 hash.c
147 host-aout.c
148 hosts
149 hp300bsd.c
150 hp300hpux.c
151 hppa_stubs.h
152 hppabsd-core.c
153 hpux-core.c
154 i386aout.c
155 i386bsd.c
156 i386linux.c
157 i386lynx.c
158 i386mach3.c
159 i386os9k.c
160 ieee.c
161 init.c
162 irix-core.c
163 libaout.h
164 libbfd-in.h
165 libbfd.c
166 libbfd.h
167 libcoff-in.h
168 libcoff.h
169 libecoff.h
170 libelf.h
171 libhppa.h
172 libieee.h
173 libnlm.h
174 liboasys.h
175 linker.c
176 lynx-core.c
177 m68klynx.c
178 mipsbsd.c
179 newsos3.c
180 netbsd386.c
181 nlm-target.h
182 nlm.c
183 nlm32-alpha.c
184 nlm32-i386.c
185 nlm32-sparc.c
186 nlm32.c
187 nlm64.c
188 nlmcode.h
189 nlmswap.h
190 oasys.c
191 opncls.c
192 osf-core.c
193 ptrace-core.c
194 reloc.c
195 reloc16.c
196 rs6000-core.c
197 section.c
198 som.c
199 som.h
200 sparclynx.c
201 srec.c
202 stab-syms.c
203 sunos.c
204 syms.c
205 targets.c
206 tekhex.c
207 trad-core.c
208
209 Things-to-lose:
210
211
212 Do-last:
213
214 v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd"
215 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
216         if [ -n "${verbose}" ] ; then
217                 echo Keeping v9 stuff in $v9files.
218         fi
219 else
220         if [ -n "${verbose}" ]; then
221                 echo -n Cleaning v9 in `pwd`:
222         fi
223         for f in $v9files ; do
224                 if [ -n "${verbose}" ] ; then
225                         echo -n " " $f
226                 fi
227                 sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new
228                 if [ -n "${safe}" ] ; then
229                         mv $f .Recover
230                 fi
231                 mv new $f
232         done
233         chmod a+x config.bfd
234 fi
235
236
237 mpwfiles="coffswap.h"
238 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
239         if [ -n "${verbose}" ] ; then
240                 echo Keeping mpw stuff in $mpwfiles.
241         fi
242 else
243         if [ -n "${verbose}" ]; then
244                 echo -n Cleaning mpw in `pwd`:
245         fi
246         for f in $mpwfiles ; do
247                 if [ -n "${verbose}" ] ; then
248                         echo -n " " $f
249                 fi
250                 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
251                 if [ -n "${safe}" ] ; then
252                         mv $f .Recover
253                 fi
254                 mv new $f
255         done
256         chmod a+x config.bfd
257 fi
258
259
260 ppcfiles="ChangeLog Makefile.in configure.in config.bfd targets.c"
261 if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
262         if [ -n "${verbose}" ] ; then
263                 echo Keeping PowerPC NetWare stuff in $ppcfiles.
264         fi
265 else
266         if [ -n "${verbose}" ]; then
267                 echo -n Removing PowerPC NetWare in `pwd`:
268         fi
269         for f in $ppcfiles ; do
270                 if [ -n "${verbose}" ] ; then
271                         echo -n " " $f
272                 fi
273                 sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
274                 if [ -n "${safe}" ] ; then
275                         mv $f .Recover
276                 fi
277                 mv new $f
278         done
279         chmod a+x config.bfd
280 fi
281
282
283 # End of file.