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