* ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.
[deliverable/binutils-gdb.git] / gdb / .Sanitize
1 # .Sanitize for devo/gdb.
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 arc_files="arc-tdep.c remote-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${arc_files}
24 fi
25 else
26 lose_these_too="${arc_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${arc_files}
29 fi
30 fi
31
32 gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl"
33
34 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
35 lose_these_too="${gdbtk_files} ${lose_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Deleting ${gdbtk_files}
38 fi
39 else
40 keep_these_too="${gdbtk_files} ${keep_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Keeping ${gdbtk_files}
43 fi
44 fi
45
46 # WinGDB files are not really ready to be part of FSF releases, but
47 # keep them for progressives and such.
48
49 mswin_files="mswin"
50
51 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
52 lose_these_too="${mswin_files} ${lose_these_too}"
53 if [ -n "${verbose}" ] ; then
54 echo Deleting ${mswin_files}
55 fi
56 else
57 keep_these_too="${mswin_files} ${keep_these_too}"
58 if [ -n "${verbose}" ] ; then
59 echo Keeping ${mswin_files}
60 fi
61 fi
62
63 gm_files="gmagic.c gmagic.h"
64
65 if ( echo $* | grep keep\-gm > /dev/null ) ; then
66 keep_these_too="${gm_files} ${keep_these_too}"
67 if [ -n "${verbose}" ] ; then
68 echo Keeping ${gm_files}
69 fi
70 else
71 lose_these_too="${gm_files} ${lose_these_too}"
72 if [ -n "${verbose}" ] ; then
73 echo Deleting ${gm_files}
74 fi
75 fi
76
77 # All files listed between the "Things-to-keep:" line and the
78 # "Files-to-sed:" line will be kept. All other files will be removed.
79 # Directories listed in this section will have their own Sanitize
80 # called. Directories not listed will be removed in their entirety
81 # with rm -rf.
82
83 Things-to-keep:
84
85 .gdbinit
86 29k-share
87 COPYING
88 ChangeLog
89 ChangeLog-3.x
90 ChangeLog-9091
91 ChangeLog-92
92 ChangeLog-93
93 ChangeLog-94
94 Makefile.in
95 NEWS
96 README
97 TODO
98 a29k-tdep.c
99 a68v-nat.c
100 aclocal.m4
101 alpha-nat.c
102 alpha-tdep.c
103 altos-xdep.c
104 annotate.c
105 annotate.h
106 arm-convert.s
107 arm-tdep.c
108 arm-xdep.c
109 blockframe.c
110 breakpoint.c
111 breakpoint.h
112 buildsym.c
113 buildsym.h
114 callback.c
115 callback.h
116 c-exp.y
117 c-lang.c
118 c-lang.h
119 c-typeprint.c
120 c-valprint.c
121 call-cmds.h
122 ch-exp.y
123 ch-lang.c
124 ch-lang.h
125 ch-typeprint.c
126 ch-valprint.c
127 coff-solib.c
128 coff-solib.h
129 coffread.c
130 command.c
131 command.h
132 complaints.c
133 complaints.h
134 config
135 configure
136 configure.in
137 convex-tdep.c
138 convex-xdep.c
139 copying.awk
140 copying.c
141 core-sol2.c
142 core-svr4.c
143 corefile.c
144 coredep.c
145 corelow.c
146 cp-valprint.c
147 cpu32bug-rom.c
148 cxux-nat.c
149 dbxread.c
150 dcache.c
151 dcache.h
152 defs.h
153 delta68-nat.c
154 demangle.c
155 doc
156 dpx2-nat.c
157 dst.h
158 dstread.c
159 dwarfread.c
160 elfread.c
161 environ.c
162 environ.h
163 eval.c
164 exec.c
165 expprint.c
166 expression.h
167 f-exp.y
168 f-lang.c
169 f-lang.h
170 f-typeprint.c
171 f-valprint.c
172 findvar.c
173 fork-child.c
174 frame.h
175 gdb_stat.h
176 gdb_string.h
177 gdb-stabs.h
178 gdb.1
179 gdb.gdb
180 gdba.el
181 gdbcmd.h
182 gdbcore.h
183 gdbserver
184 gdbtypes.c
185 gdbtypes.h
186 gnu-regex.c
187 gnu-regex.h
188 go32-xdep.c
189 gould-tdep.c
190 gould-xdep.c
191 h8300-tdep.c
192 h8500-tdep.c
193 hp300ux-nat.c
194 hppa-tdep.c
195 hppab-nat.c
196 hppah-nat.c
197 hppam3-nat.c
198 hpread.c
199 i386-stub.c
200 i386-tdep.c
201 i386aix-nat.c
202 i386b-nat.c
203 i386ly-tdep.c
204 i386m3-nat.c
205 i386mach-nat.c
206 i386v-nat.c
207 i386v4-nat.c
208 i387-tdep.c
209 i960-tdep.c
210 infcmd.c
211 inferior.h
212 inflow.c
213 infptrace.c
214 infrun.c
215 inftarg.c
216 irix4-nat.c
217 irix5-nat.c
218 isi-xdep.c
219 kdb-start.c
220 language.c
221 language.h
222 lynx-nat.c
223 m2-exp.y
224 m2-lang.c
225 m2-lang.h
226 m2-typeprint.c
227 m2-valprint.c
228 m3-nat.c
229 m68k-stub.c
230 m68k-tdep.c
231 m88k-nat.c
232 m88k-tdep.c
233 mac-defs.h
234 mac-xdep.c
235 mac-gdb.r
236 main.c
237 maint.c
238 mdebugread.c
239 mem-break.c
240 minimon.h
241 minsyms.c
242 mips-nat.c
243 mips-tdep.c
244 mipsm3-nat.c
245 mipsv4-nat.c
246 mipsread.c
247 monitor.h
248 monitor.c
249 mpw-config.in
250 mpw-make.sed
251 news-xdep.c
252 nindy-share
253 nindy-tdep.c
254 nlm
255 nlmread.c
256 ns32k-tdep.c
257 ns32km3-nat.c
258 objfiles.c
259 objfiles.h
260 op50-rom.c
261 os9kread.c
262 osfsolib.c
263 parse.c
264 parser-defs.h
265 partial-stab.h
266 ppcbug-rom.c
267 printcmd.c
268 procfs.c
269 ptx4-nat.c
270 pyr-tdep.c
271 pyr-xdep.c
272 remote-adapt.c
273 remote-array.c
274 remote-bug.c
275 remote-e7000.c
276 remote-eb.c
277 remote-es.c
278 remote-est.c
279 remote-hms.c
280 remote-mips.c
281 remote-mm.c
282 remote-nindy.c
283 remote-nrom.c
284 remote-os9k.c
285 remote-pa.c
286 remote-rdp.c
287 remote-sim.c
288 remote-sim.h
289 remote-st.c
290 remote-udi.c
291 remote-utils.c
292 remote-utils.h
293 remote-vx.c
294 remote-vx29k.c
295 remote-vx68.c
296 remote-vx960.c
297 remote-vxmips.c
298 remote-vxsparc.c
299 remote.c
300 rs6000-nat.c
301 rs6000-tdep.c
302 rom68k-rom.c
303 saber.suppress
304 scm-exp.c
305 scm-lang.c
306 scm-lang.h
307 scm-tags.h
308 scm-valprint.c
309 ser-e7kpc.c
310 ser-go32.c
311 ser-mac.c
312 ser-tcp.c
313 ser-unix.c
314 serial.c
315 serial.h
316 sh-tdep.c
317 sh3-rom.c
318 signals.h
319 solib.c
320 solib.h
321 somread.c
322 somsolib.c
323 somsolib.h
324 source.c
325 sparc-nat.c
326 sparc-stub.c
327 sparc-tdep.c
328 sparcl-stub.c
329 sparcl-tdep.c
330 srec.c
331 srec.h
332 stabsread.c
333 stabsread.h
334 stack.c
335 standalone.c
336 stop-gdb.c
337 stuff.c
338 sun3-nat.c
339 sun386-nat.c
340 symfile.c
341 symfile.h
342 symm-nat.c
343 symm-tdep.c
344 symmisc.c
345 symtab.c
346 symtab.h
347 tahoe-tdep.c
348 target.c
349 target.h
350 terminal.h
351 testsuite
352 thread.c
353 thread.h
354 top.c
355 top.h
356 typeprint.c
357 typeprint.h
358 ultra3-nat.c
359 ultra3-xdep.c
360 umax-xdep.c
361 utils.c
362 valarith.c
363 valops.c
364 valprint.c
365 valprint.h
366 value.h
367 values.c
368 vax-tdep.c
369 vx-share
370 w65-tdep.c
371 w89k-rom.c
372 win32-nat.c
373 xcoffread.c
374 xcoffsolib.c
375 xcoffsolib.h
376 xmodem.c
377 xmodem.h
378 z8k-tdep.c
379
380 # Things which are explicitly *not* kept, for now.
381
382 Things-to-lose:
383
384 ser-go32-para.c
385 HOW_TO_RELEASE
386
387 Do-last:
388
389 # Don't try to clean directories here, as the 'mv' command will fail.
390 # Also, grep fails on NFS mounted directories.
391 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
392 echo Catering to RMS by removing traces of \"gdbtk\"...
393 for i in * ; do
394 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
395 echo Removing traces of \"gdbtk\" out of $i...
396 cp $i new
397 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
398 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
399 echo Caching $i in .Recover...
400 mv $i .Recover
401 fi
402 mv new $i
403 fi
404 done
405 else
406 echo Leaving \"gdbtk\" in the sources...
407 for i in * ; do
408 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
409 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
410 cp $i new
411 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
412 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
413 echo Caching $i in .Recover...
414 mv $i .Recover
415 fi
416 mv new $i
417 fi
418 done
419 fi
420
421 r16_files="configure.in configure"
422
423 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
424 for i in $r16_files ; do
425 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
426 if [ -n "${verbose}" ] ; then
427 echo Keeping r16 stuff in $i
428 fi
429 fi
430 done
431 else
432 for i in $r16_files ; do
433 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
434 if [ -n "${verbose}" ] ; then
435 echo Removing traces of \"r16\" from $i...
436 fi
437 cp $i new
438 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
439 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
440 if [ -n "${verbose}" ] ; then
441 echo Caching $i in .Recover...
442 fi
443 mv $i .Recover
444 fi
445 mv new $i
446 fi
447 done
448 fi
449
450 arc_files="configure.in configure ChangeLog"
451
452 if ( echo $* | grep keep\-arc > /dev/null ) ; then
453 for i in $arc_files ; do
454 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
455 if [ -n "${verbose}" ] ; then
456 echo Keeping arc stuff in $i
457 fi
458 fi
459 done
460 else
461 for i in $arc_files ; do
462 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
463 if [ -n "${verbose}" ] ; then
464 echo Removing traces of \"arc\" from $i...
465 fi
466 cp $i new
467 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
468 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
469 if [ -n "${verbose}" ] ; then
470 echo Caching $i in .Recover...
471 fi
472 mv $i .Recover
473 fi
474 mv new $i
475 fi
476 done
477 fi
478
479 sh3e_files="ChangeLog"
480
481 if ( echo $* | grep keep\-sh3e > /dev/null ) ; then
482 for i in $sh3e_files ; do
483 if test ! -d $i && (grep sanitize-sh3e $i > /dev/null) ; then
484 if [ -n "${verbose}" ] ; then
485 echo Keeping sh3e stuff in $i
486 fi
487 fi
488 done
489 else
490 for i in $sh3e_files ; do
491 if test ! -d $i && (grep sanitize-sh3e $i > /dev/null) ; then
492 if [ -n "${verbose}" ] ; then
493 echo Removing traces of \"sh3e\" from $i...
494 fi
495 cp $i new
496 sed '/start\-sanitize\-sh3e/,/end-\sanitize\-sh3e/d' < $i > new
497 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
498 if [ -n "${verbose}" ] ; then
499 echo Caching $i in .Recover...
500 fi
501 mv $i .Recover
502 fi
503 mv new $i
504 fi
505 done
506 fi
507
508 if ( echo $* | grep keep\-gm > /dev/null ) ; then
509 for i in * ; do
510 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
511 if [ -n "${verbose}" ] ; then
512 echo Keeping gm stuff in $i
513 fi
514 fi
515 done
516 else
517 for i in * ; do
518 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
519 if [ -n "${verbose}" ] ; then
520 echo Removing traces of \"gm\" from $i...
521 fi
522 cp $i new
523 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
524 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
525 if [ -n "${verbose}" ] ; then
526 echo Caching $i in .Recover...
527 fi
528 mv $i .Recover
529 fi
530 mv new $i
531 fi
532 done
533 fi
534
535 for i in * ; do
536 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
537 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
538 fi
539 done
540
541 #
542 # End of file.
This page took 0.041241 seconds and 4 git commands to generate.