Added new files elflink.c, elflink.h, elfcore.h.
[deliverable/binutils-gdb.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 rce_files="cpu-rce.c aout-rce.c"
19
20 if ( echo $* | grep keep\-rce > /dev/null ) ; then
21 keep_these_too="${rce_files} ${keep_these_too}"
22 else
23 lose_these_too="${rce_files} ${lose_these_too}"
24 fi
25
26 arc_files="cpu-arc.c elf32-arc.c"
27
28 if ( echo $* | grep keep\-arc > /dev/null ) ; then
29 keep_these_too="${arc_files} ${keep_these_too}"
30 else
31 lose_these_too="${arc_files} ${lose_these_too}"
32 fi
33
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
40 Things-to-keep:
41
42 COPYING
43 ChangeLog
44 ChangeLog.1
45 Makefile.in
46 PORTING
47 TODO
48 VERSION
49 aix386-core.c
50 aout-adobe.c
51 aout-arm.c
52 aout-encap.c
53 aout-ns32k.c
54 aout-target.h
55 aout0.c
56 aout32.c
57 aout64.c
58 aoutf1.h
59 aoutx.h
60 archive.c
61 archures.c
62 bfd-in.h
63 bfd-in2.h
64 bfd.c
65 binary.c
66 bout.c
67 cache.c
68 cf-i386lynx.c
69 cf-m68klynx.c
70 cf-sparclynx.c
71 cisco-core.c
72 coff-a29k.c
73 coff-arm.c
74 coff-alpha.c
75 coff-apollo.c
76 coff-go32.c
77 coff-h8300.c
78 coff-h8500.c
79 coff-i386.c
80 coff-i960.c
81 coff-m68k.c
82 coff-m88k.c
83 coff-mips.c
84 coff-rs6000.c
85 coff-sh.c
86 coff-sparc.c
87 coff-u68k.c
88 coff-we32k.c
89 coff-w65.c
90 coff-z8k.c
91 coffcode.h
92 coffgen.c
93 cofflink.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-arm.c
104 cpu-h8300.c
105 cpu-h8500.c
106 cpu-hppa.c
107 cpu-i386.c
108 cpu-i960.c
109 cpu-m68k.c
110 cpu-m88k.c
111 cpu-mips.c
112 cpu-ns32k.c
113 cpu-powerpc.c
114 cpu-rs6000.c
115 cpu-sh.c
116 cpu-sparc.c
117 cpu-vax.c
118 cpu-we32k.c
119 cpu-w65.c
120 cpu-z8k.c
121 demo64.c
122 dep-in.sed
123 doc
124 ecoff.c
125 ecofflink.c
126 ecoffswap.h
127 elf.c
128 elf32-gen.c
129 elf32-hppa.c
130 elf32-hppa.h
131 elf32-i386.c
132 elf32-i860.c
133 elf32-m68k.c
134 elf32-m88k.c
135 elf32-mips.c
136 elf32-ppc.c
137 elf32-sparc.c
138 elf32.c
139 elf64-gen.c
140 elf64-sparc.c
141 elf64.c
142 elfxx-target.h
143 elfcode.h
144 elfcore.h
145 elflink.c
146 elflink.h
147 filemode.c
148 format.c
149 gen-aout.c
150 genlink.h
151 hash.c
152 host-aout.c
153 hosts
154 hp300bsd.c
155 hp300hpux.c
156 hppa_stubs.h
157 hppabsd-core.c
158 hpux-core.c
159 i386aout.c
160 i386bsd.c
161 i386dynix.c
162 i386linux.c
163 i386netbsd.c
164 i386lynx.c
165 i386mach3.c
166 i386msdos.c
167 i386os9k.c
168 ieee.c
169 init.c
170 irix-core.c
171 libaout.h
172 libbfd-in.h
173 libbfd.c
174 libbfd.h
175 libcoff-in.h
176 libcoff.h
177 libecoff.h
178 libelf.h
179 libhppa.h
180 libieee.h
181 libnlm.h
182 liboasys.h
183 linker.c
184 lynx-core.c
185 m68klynx.c
186 m68knetbsd.c
187 m88kmach3.c
188 makefile.dos
189 mipsbsd.c
190 mpw-config.in
191 mpw-make.in
192 newsos3.c
193 netbsd.h
194 nlm-target.h
195 nlm.c
196 nlm32-alpha.c
197 nlm32-i386.c
198 nlm32-ppc.c
199 nlm32-sparc.c
200 nlm32.c
201 nlm64.c
202 nlmcode.h
203 nlmswap.h
204 ns32knetbsd.c
205 oasys.c
206 opncls.c
207 osf-core.c
208 pc532-mach.c
209 pe-arm.c
210 pei-arm.c
211 pe-i386.c
212 pei-i386.c
213 ptrace-core.c
214 reloc.c
215 reloc16.c
216 riscix.c
217 rs6000-core.c
218 section.c
219 som.c
220 som.h
221 sparclynx.c
222 sparcnetbsd.c
223 srec.c
224 stab-syms.c
225 sunos.c
226 syms.c
227 targets.c
228 tekhex.c
229 trad-core.c
230 versados.c
231
232 Things-to-lose:
233
234
235 Do-last:
236
237 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
238 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
239 if [ -n "${verbose}" ] ; then
240 echo Keeping i960xl stuff in $i960xl_files.
241 fi
242 else
243 if [ -n "${verbose}" ]; then
244 echo -n Cleaning i960xl in `pwd`:
245 fi
246 for f in $i960xl_files ; do
247 if [ -n "${verbose}" ] ; then
248 echo -n " " $f
249 fi
250 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
251 if [ -n "${safe}" ] ; then
252 mv $f .Recover
253 fi
254 mv new $f
255 done
256 fi
257
258 rce_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure.in targets.c aoutx.h libaout.h"
259 if ( echo $* | grep keep\-rce > /dev/null ) ; then
260 for i in $rce_files ; do
261 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
262 if [ -n "${verbose}" ] ; then
263 echo Keeping rce stuff in $i
264 fi
265 fi
266 done
267 else
268 for i in $rce_files ; do
269 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
270 if [ -n "${verbose}" ] ; then
271 echo Removing traces of \"rce\" from $i...
272 fi
273 cp $i new
274 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
275 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
276 if [ -n "${verbose}" ] ; then
277 echo Caching $i in .Recover...
278 fi
279 mv $i .Recover
280 fi
281 mv new $i
282 fi
283 done
284 fi
285
286 arc_files="ChangeLog Makefile.in archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h"
287 if ( echo $* | grep keep\-arc > /dev/null ) ; then
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 Keeping arc stuff in $i
292 fi
293 fi
294 done
295 else
296 for i in $arc_files ; do
297 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
298 if [ -n "${verbose}" ] ; then
299 echo Removing traces of \"arc\" from $i...
300 fi
301 cp $i new
302 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
303 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
304 if [ -n "${verbose}" ] ; then
305 echo Caching $i in .Recover...
306 fi
307 mv $i .Recover
308 fi
309 mv new $i
310 fi
311 done
312 fi
313
314 for i in * ; do
315 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
316 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
317 fi
318 done
319
320 # End of file.
This page took 0.042229 seconds and 5 git commands to generate.