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