* remote-sim.h: Delete - moved to ../include/remote-sim.h.
[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 v850_files="v850ice.c v850-tdep.c"
78
79 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
80 keep_these_too="${v850_files} ${keep_these_too}"
81 if [ -n "${verbose}" ] ; then
82 echo Keeping ${v850_files}
83 fi
84 else
85 lose_these_too="${v850_files} ${lose_these_too}"
86 if [ -n "${verbose}" ] ; then
87 echo Deleting ${v850_files}
88 fi
89 fi
90
91 m32r_files="m32r-tdep.c m32r-rom.c m32r-stub.c"
92
93 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
94 keep_these_too="${m32r_files} ${keep_these_too}"
95 if [ -n "${verbose}" ] ; then
96 echo Keeping ${m32r_files}
97 fi
98 else
99 lose_these_too="${m32r_files} ${lose_these_too}"
100 if [ -n "${verbose}" ] ; then
101 echo Deleting ${m32r_files}
102 fi
103 fi
104
105 # All files listed between the "Things-to-keep:" line and the
106 # "Files-to-sed:" line will be kept. All other files will be removed.
107 # Directories listed in this section will have their own Sanitize
108 # called. Directories not listed will be removed in their entirety
109 # with rm -rf.
110
111 Things-to-keep:
112
113 .gdbinit
114 29k-share
115 COPYING
116 ChangeLog
117 ChangeLog-3.x
118 ChangeLog-9091
119 ChangeLog-92
120 ChangeLog-93
121 ChangeLog-94
122 ChangeLog-95
123 ChangeLog-96
124 Makefile.in
125 NEWS
126 README
127 TODO
128 a29k-tdep.c
129 a68v-nat.c
130 abug-rom.c
131 aclocal.m4
132 acconfig.h
133 alpha-nat.c
134 alpha-tdep.c
135 altos-xdep.c
136 annotate.c
137 annotate.h
138 arm-convert.s
139 arm-tdep.c
140 arm-xdep.c
141 bcache.c
142 bcache.h
143 blockframe.c
144 breakpoint.c
145 breakpoint.h
146 buildsym.c
147 buildsym.h
148 c-exp.y
149 c-lang.c
150 c-lang.h
151 c-typeprint.c
152 c-valprint.c
153 call-cmds.h
154 ch-exp.c
155 ch-lang.c
156 ch-lang.h
157 ch-typeprint.c
158 ch-valprint.c
159 coff-solib.c
160 coff-solib.h
161 coffread.c
162 command.c
163 command.h
164 complaints.c
165 complaints.h
166 config
167 config.in
168 configure
169 configure.host
170 configure.in
171 configure.tgt
172 convex-tdep.c
173 convex-xdep.c
174 copying.awk
175 copying.c
176 core-aout.c
177 core-regset.c
178 core-sol2.c
179 corefile.c
180 corelow.c
181 cp-valprint.c
182 cpu32bug-rom.c
183 cxux-nat.c
184 d10v-tdep.c
185 dbug-rom.c
186 dbxread.c
187 dcache.c
188 dcache.h
189 debugify.h
190 debugify.c
191 defs.h
192 delta68-nat.c
193 demangle.c
194 doc
195 dpx2-nat.c
196 dsrec.c
197 dst.h
198 dstread.c
199 dwarf2read.c
200 dwarfread.c
201 elfread.c
202 environ.c
203 environ.h
204 eval.c
205 exec.c
206 exc_request.defs
207 expprint.c
208 expression.h
209 f-exp.y
210 f-lang.c
211 f-lang.h
212 f-typeprint.c
213 f-valprint.c
214 findvar.c
215 fork-child.c
216 frame.h
217 gdb_stat.h
218 gdb_string.h
219 gdb-stabs.h
220 gdb.1
221 gdb.gdb
222 gdba.el
223 gdbcmd.h
224 gdbcore.h
225 gdbserver
226 gdbthread.h
227 gdbtypes.c
228 gdbtypes.h
229 gnu-nat.c
230 gnu-nat.h
231 gnu-regex.c
232 gnu-regex.h
233 go32-xdep.c
234 gould-tdep.c
235 gould-xdep.c
236 h8300-tdep.c
237 h8500-tdep.c
238 hp300ux-nat.c
239 hppa-tdep.c
240 hppab-nat.c
241 hppah-nat.c
242 hppam3-nat.c
243 hpread.c
244 hpux-thread.c
245 i386-stub.c
246 i386-tdep.c
247 i386aix-nat.c
248 i386b-nat.c
249 i386gnu-nat.c
250 i386ly-tdep.c
251 i386m3-nat.c
252 i386mach-nat.c
253 i386v-nat.c
254 i386v4-nat.c
255 i387-tdep.c
256 i960-tdep.c
257 infcmd.c
258 inferior.h
259 inflow.c
260 infptrace.c
261 infrun.c
262 inftarg.c
263 irix4-nat.c
264 irix5-nat.c
265 isi-xdep.c
266 kdb-start.c
267 language.c
268 language.h
269 lynx-nat.c
270 m2-exp.y
271 m2-lang.c
272 m2-lang.h
273 m2-typeprint.c
274 m2-valprint.c
275 m3-nat.c
276 m68k-stub.c
277 m68k-tdep.c
278 m68knbsd-nat.c
279 m88k-nat.c
280 m88k-tdep.c
281 mac-defs.h
282 mac-xdep.c
283 mac-gdb.r
284 mac-nat.c
285 main.c
286 maint.c
287 mdebugread.c
288 mem-break.c
289 minimon.h
290 minsyms.c
291 mips-nat.c
292 mips-tdep.c
293 mipsm3-nat.c
294 mipsv4-nat.c
295 mipsread.c
296 mn10200-tdep.c
297 mn10300-tdep.c
298 mon960-rom.c
299 monitor.h
300 monitor.c
301 mpw-config.in
302 mpw-make.sed
303 msg.defs
304 msg_reply.defs
305 news-xdep.c
306 nindy-share
307 nindy-tdep.c
308 nlm
309 nlmread.c
310 notify.defs
311 ns32k-tdep.c
312 ns32km3-nat.c
313 objfiles.c
314 objfiles.h
315 op50-rom.c
316 os9kread.c
317 osf-share
318 osfsolib.c
319 parse.c
320 parser-defs.h
321 partial-stab.h
322 ppcbug-rom.c
323 printcmd.c
324 process_reply.defs
325 procfs.c
326 ptx4-nat.c
327 pyr-tdep.c
328 pyr-xdep.c
329 remote-adapt.c
330 remote-array.c
331 remote-bug.c
332 remote-e7000.c
333 remote-eb.c
334 remote-es.c
335 remote-est.c
336 remote-hms.c
337 remote-mips.c
338 remote-mm.c
339 remote-nindy.c
340 remote-nrom.c
341 remote-os9k.c
342 remote-pa.c
343 remote-rdp.c
344 remote-sim.c
345 remote-sim.h
346 remote-st.c
347 remote-udi.c
348 remote-utils.c
349 remote-utils.h
350 remote-vx.c
351 remote-vx29k.c
352 remote-vx68.c
353 remote-vx960.c
354 remote-vxmips.c
355 remote-vxsparc.c
356 remote-wiggler.c
357 remote.c
358 reply_mig_hack.awk
359 rs6000-nat.c
360 rs6000-tdep.c
361 rom68k-rom.c
362 saber.suppress
363 scm-exp.c
364 scm-lang.c
365 scm-lang.h
366 scm-tags.h
367 scm-valprint.c
368 ser-e7kpc.c
369 ser-go32.c
370 ser-mac.c
371 ser-tcp.c
372 ser-unix.c
373 serial.c
374 serial.h
375 sh-stub.c
376 sh-tdep.c
377 sh3-rom.c
378 signals.h
379 sol-thread.c
380 solib.c
381 solib.h
382 somread.c
383 somsolib.c
384 somsolib.h
385 source.c
386 sparc-nat.c
387 sparc-stub.c
388 sparc-tdep.c
389 sparcl-stub.c
390 sparcl-tdep.c
391 sparclet-rom.c
392 sparclet-stub.c
393 srec.h
394 stabsread.c
395 stabsread.h
396 stack.c
397 standalone.c
398 stop-gdb.c
399 stuff.c
400 sun3-nat.c
401 sun386-nat.c
402 symfile.c
403 symfile.h
404 symm-nat.c
405 symm-tdep.c
406 symmisc.c
407 symtab.c
408 symtab.h
409 tahoe-tdep.c
410 target.c
411 target.h
412 terminal.h
413 testsuite
414 thread.c
415 top.c
416 top.h
417 typeprint.c
418 typeprint.h
419 ultra3-nat.c
420 ultra3-xdep.c
421 umax-xdep.c
422 utils.c
423 valarith.c
424 valops.c
425 valprint.c
426 valprint.h
427 value.h
428 values.c
429 vax-tdep.c
430 vx-share
431 w65-tdep.c
432 w89k-rom.c
433 win32-nat.c
434 xcoffread.c
435 xcoffsolib.c
436 xcoffsolib.h
437 xmodem.c
438 xmodem.h
439 z8k-tdep.c
440
441 # Things which are explicitly *not* kept, for now.
442
443 Things-to-lose:
444
445 ser-go32-para.c
446 HOW_TO_RELEASE
447
448 Do-last:
449
450 # Don't try to clean directories here, as the 'mv' command will fail.
451 # Also, grep fails on NFS mounted directories.
452 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
453 echo Catering to RMS by removing traces of \"gdbtk\"...
454 for i in * ; do
455 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
456 echo Removing traces of \"gdbtk\" out of $i...
457 cp $i new
458 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
459 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
460 echo Caching $i in .Recover...
461 mv $i .Recover
462 fi
463 mv new $i
464 fi
465 done
466 else
467 echo Leaving \"gdbtk\" in the sources...
468 for i in * ; do
469 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
470 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
471 cp $i new
472 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
473 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
474 echo Caching $i in .Recover...
475 mv $i .Recover
476 fi
477 mv new $i
478 fi
479 done
480 fi
481
482 arc_files="configure.tgt ChangeLog-95"
483
484 if ( echo $* | grep keep\-arc > /dev/null ) ; then
485 for i in $arc_files ; do
486 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
487 if [ -n "${verbose}" ] ; then
488 echo Keeping arc stuff in $i
489 fi
490 fi
491 done
492 else
493 for i in $arc_files ; do
494 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
495 if [ -n "${verbose}" ] ; then
496 echo Removing traces of \"arc\" from $i...
497 fi
498 cp $i new
499 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
500 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
501 if [ -n "${verbose}" ] ; then
502 echo Caching $i in .Recover...
503 fi
504 mv $i .Recover
505 fi
506 mv new $i
507 fi
508 done
509 fi
510
511 if ( echo $* | grep keep\-gm > /dev/null ) ; then
512 for i in * ; do
513 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
514 if [ -n "${verbose}" ] ; then
515 echo Keeping gm stuff in $i
516 fi
517 fi
518 done
519 else
520 for i in * ; do
521 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
522 if [ -n "${verbose}" ] ; then
523 echo Removing traces of \"gm\" from $i...
524 fi
525 cp $i new
526 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
527 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
528 if [ -n "${verbose}" ] ; then
529 echo Caching $i in .Recover...
530 fi
531 mv $i .Recover
532 fi
533 mv new $i
534 fi
535 done
536 fi
537
538 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
539 for i in * ; do
540 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
541 if [ -n "${verbose}" ] ; then
542 echo Keeping v850 stuff in $i
543 fi
544 fi
545 done
546 else
547 for i in * ; do
548 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
549 if [ -n "${verbose}" ] ; then
550 echo Removing traces of \"v850\" from $i...
551 fi
552 cp $i new
553 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
554 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
555 if [ -n "${verbose}" ] ; then
556 echo Caching $i in .Recover...
557 fi
558 mv $i .Recover
559 fi
560 mv new $i
561 fi
562 done
563 fi
564
565 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
566 for i in * ; do
567 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
568 if [ -n "${verbose}" ] ; then
569 echo Keeping r5900 stuff in $i
570 fi
571 fi
572 done
573 else
574 for i in * ; do
575 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
576 if [ -n "${verbose}" ] ; then
577 echo Removing traces of \"r5900\" from $i...
578 fi
579 cp $i new
580 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
581 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
582 if [ -n "${verbose}" ] ; then
583 echo Caching $i in .Recover...
584 fi
585 mv $i .Recover
586 fi
587 mv new $i
588 fi
589 done
590 fi
591
592 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
593 for i in * ; do
594 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
595 if [ -n "${verbose}" ] ; then
596 echo Keeping m32r stuff in $i
597 fi
598 fi
599 done
600 else
601 for i in * ; do
602 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
603 if [ -n "${verbose}" ] ; then
604 echo Removing traces of \"m32r\" from $i...
605 fi
606 cp $i new
607 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
608 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
609 if [ -n "${verbose}" ] ; then
610 echo Caching $i in .Recover...
611 fi
612 mv $i .Recover
613 fi
614 mv new $i
615 fi
616 done
617 fi
618
619 for i in * ; do
620 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
621 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
622 fi
623 done
624
625 #
626 # End of file.
This page took 0.04146 seconds and 4 git commands to generate.