* coff-h8300.c (COFF_LONG_FILENAMES): Define.
[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-target.h
139 elf32.c
140 elf64-gen.c
141 elf64-sparc.c
142 elf64-target.h
143 elf64.c
144 elfcode.h
145 filemode.c
146 format.c
147 gen-aout.c
148 genlink.h
149 hash.c
150 host-aout.c
151 hosts
152 hp300bsd.c
153 hp300hpux.c
154 hppa_stubs.h
155 hppabsd-core.c
156 hpux-core.c
157 i386aout.c
158 i386bsd.c
159 i386dynix.c
160 i386linux.c
161 i386netbsd.c
162 i386lynx.c
163 i386mach3.c
164 i386msdos.c
165 i386os9k.c
166 ieee.c
167 init.c
168 irix-core.c
169 libaout.h
170 libbfd-in.h
171 libbfd.c
172 libbfd.h
173 libcoff-in.h
174 libcoff.h
175 libecoff.h
176 libelf.h
177 libhppa.h
178 libieee.h
179 libnlm.h
180 liboasys.h
181 linker.c
182 lynx-core.c
183 m68klynx.c
184 m68knetbsd.c
185 m88kmach3.c
186 makefile.dos
187 mipsbsd.c
188 mpw-config.in
189 mpw-make.in
190 newsos3.c
191 netbsd.h
192 nlm-target.h
193 nlm.c
194 nlm32-alpha.c
195 nlm32-i386.c
196 nlm32-ppc.c
197 nlm32-sparc.c
198 nlm32.c
199 nlm64.c
200 nlmcode.h
201 nlmswap.h
202 ns32knetbsd.c
203 oasys.c
204 opncls.c
205 osf-core.c
206 pc532-mach.c
207 pe-arm.c
208 pei-arm.c
209 pe-i386.c
210 pei-i386.c
211 ptrace-core.c
212 reloc.c
213 reloc16.c
214 riscix.c
215 rs6000-core.c
216 section.c
217 som.c
218 som.h
219 sparclynx.c
220 sparcnetbsd.c
221 srec.c
222 stab-syms.c
223 sunos.c
224 syms.c
225 targets.c
226 tekhex.c
227 trad-core.c
228 versados.c
229
230 Things-to-lose:
231
232
233 Do-last:
234
235 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
236 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
237 if [ -n "${verbose}" ] ; then
238 echo Keeping i960xl stuff in $i960xl_files.
239 fi
240 else
241 if [ -n "${verbose}" ]; then
242 echo -n Cleaning i960xl in `pwd`:
243 fi
244 for f in $i960xl_files ; do
245 if [ -n "${verbose}" ] ; then
246 echo -n " " $f
247 fi
248 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
249 if [ -n "${safe}" ] ; then
250 mv $f .Recover
251 fi
252 mv new $f
253 done
254 fi
255
256 rce_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure.in targets.c aoutx.h libaout.h"
257 if ( echo $* | grep keep\-rce > /dev/null ) ; then
258 for i in $rce_files ; do
259 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
260 if [ -n "${verbose}" ] ; then
261 echo Keeping rce stuff in $i
262 fi
263 fi
264 done
265 else
266 for i in $rce_files ; do
267 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
268 if [ -n "${verbose}" ] ; then
269 echo Removing traces of \"rce\" from $i...
270 fi
271 cp $i new
272 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
273 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
274 if [ -n "${verbose}" ] ; then
275 echo Caching $i in .Recover...
276 fi
277 mv $i .Recover
278 fi
279 mv new $i
280 fi
281 done
282 fi
283
284 arc_files="ChangeLog Makefile.in archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h"
285 if ( echo $* | grep keep\-arc > /dev/null ) ; then
286 for i in $arc_files ; do
287 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
288 if [ -n "${verbose}" ] ; then
289 echo Keeping arc stuff in $i
290 fi
291 fi
292 done
293 else
294 for i in $arc_files ; do
295 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
296 if [ -n "${verbose}" ] ; then
297 echo Removing traces of \"arc\" from $i...
298 fi
299 cp $i new
300 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
301 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
302 if [ -n "${verbose}" ] ; then
303 echo Caching $i in .Recover...
304 fi
305 mv $i .Recover
306 fi
307 mv new $i
308 fi
309 done
310 fi
311
312 for i in * ; do
313 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
314 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
315 fi
316 done
317
318 # End of file.
This page took 0.052381 seconds and 4 git commands to generate.