Bunch of changes from Richard Earnshaw for generic bi-endian ARM aout targets.
[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-alpha.c
74 coff-apollo.c
75 coff-go32.c
76 coff-h8300.c
77 coff-h8500.c
78 coff-i386.c
79 coff-i960.c
80 coff-m68k.c
81 coff-m88k.c
82 coff-mips.c
83 coff-rs6000.c
84 coff-sh.c
85 coff-sparc.c
86 coff-u68k.c
87 coff-we32k.c
88 coff-w65.c
89 coff-z8k.c
90 coffcode.h
91 coffgen.c
92 cofflink.c
93 coffswap.h
94 config
95 config.bfd
96 configure.bat
97 configure.host
98 configure.in
99 core.c
100 cpu-a29k.c
101 cpu-alpha.c
102 cpu-arm.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-ns32k.c
112 cpu-powerpc.c
113 cpu-rs6000.c
114 cpu-sh.c
115 cpu-sparc.c
116 cpu-vax.c
117 cpu-we32k.c
118 cpu-w65.c
119 cpu-z8k.c
120 demo64.c
121 dep-in.sed
122 doc
123 ecoff.c
124 ecofflink.c
125 ecoffswap.h
126 elf.c
127 elf32-gen.c
128 elf32-hppa.c
129 elf32-hppa.h
130 elf32-i386.c
131 elf32-i860.c
132 elf32-m68k.c
133 elf32-m88k.c
134 elf32-mips.c
135 elf32-ppc.c
136 elf32-sparc.c
137 elf32-target.h
138 elf32.c
139 elf64-gen.c
140 elf64-sparc.c
141 elf64-target.h
142 elf64.c
143 elfcode.h
144 filemode.c
145 format.c
146 gen-aout.c
147 genlink.h
148 hash.c
149 host-aout.c
150 hosts
151 hp300bsd.c
152 hp300hpux.c
153 hppa_stubs.h
154 hppabsd-core.c
155 hpux-core.c
156 i386aout.c
157 i386bsd.c
158 i386dynix.c
159 i386linux.c
160 i386netbsd.c
161 i386lynx.c
162 i386mach3.c
163 i386msdos.c
164 i386os9k.c
165 ieee.c
166 init.c
167 irix-core.c
168 libaout.h
169 libbfd-in.h
170 libbfd.c
171 libbfd.h
172 libcoff-in.h
173 libcoff.h
174 libecoff.h
175 libelf.h
176 libhppa.h
177 libieee.h
178 libnlm.h
179 liboasys.h
180 linker.c
181 lynx-core.c
182 m68klynx.c
183 m68knetbsd.c
184 m88kmach3.c
185 makefile.dos
186 mipsbsd.c
187 mpw-config.in
188 mpw-make.in
189 newsos3.c
190 netbsd.h
191 nlm-target.h
192 nlm.c
193 nlm32-alpha.c
194 nlm32-i386.c
195 nlm32-ppc.c
196 nlm32-sparc.c
197 nlm32.c
198 nlm64.c
199 nlmcode.h
200 nlmswap.h
201 ns32knetbsd.c
202 oasys.c
203 opncls.c
204 osf-core.c
205 pc532-mach.c
206 pe-i386.c
207 pei-i386.c
208 ptrace-core.c
209 reloc.c
210 reloc16.c
211 riscix.c
212 rs6000-core.c
213 section.c
214 som.c
215 som.h
216 sparclynx.c
217 sparcnetbsd.c
218 srec.c
219 stab-syms.c
220 sunos.c
221 syms.c
222 targets.c
223 tekhex.c
224 trad-core.c
225
226 Things-to-lose:
227
228
229 Do-last:
230
231 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
232 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
233 if [ -n "${verbose}" ] ; then
234 echo Keeping i960xl stuff in $i960xl_files.
235 fi
236 else
237 if [ -n "${verbose}" ]; then
238 echo -n Cleaning i960xl in `pwd`:
239 fi
240 for f in $i960xl_files ; do
241 if [ -n "${verbose}" ] ; then
242 echo -n " " $f
243 fi
244 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
245 if [ -n "${safe}" ] ; then
246 mv $f .Recover
247 fi
248 mv new $f
249 done
250 fi
251
252 rce_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure.in targets.c aoutx.h libaout.h"
253 if ( echo $* | grep keep\-rce > /dev/null ) ; then
254 for i in $rce_files ; do
255 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
256 if [ -n "${verbose}" ] ; then
257 echo Keeping rce stuff in $i
258 fi
259 fi
260 done
261 else
262 for i in $rce_files ; do
263 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
264 if [ -n "${verbose}" ] ; then
265 echo Removing traces of \"rce\" from $i...
266 fi
267 cp $i new
268 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
269 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
270 if [ -n "${verbose}" ] ; then
271 echo Caching $i in .Recover...
272 fi
273 mv $i .Recover
274 fi
275 mv new $i
276 fi
277 done
278 fi
279
280 arc_files="ChangeLog Makefile.in archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h"
281 if ( echo $* | grep keep\-arc > /dev/null ) ; then
282 for i in $arc_files ; do
283 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
284 if [ -n "${verbose}" ] ; then
285 echo Keeping arc stuff in $i
286 fi
287 fi
288 done
289 else
290 for i in $arc_files ; do
291 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
292 if [ -n "${verbose}" ] ; then
293 echo Removing traces of \"arc\" from $i...
294 fi
295 cp $i new
296 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
297 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
298 if [ -n "${verbose}" ] ; then
299 echo Caching $i in .Recover...
300 fi
301 mv $i .Recover
302 fi
303 mv new $i
304 fi
305 done
306 fi
307
308 for i in * ; do
309 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
310 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
311 fi
312 done
313
314 # End of file.
This page took 0.043899 seconds and 5 git commands to generate.