remote-sim.h moved to include directory
[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 gdbtcl"
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-st.c
346 remote-udi.c
347 remote-utils.c
348 remote-utils.h
349 remote-vx.c
350 remote-vx29k.c
351 remote-vx68.c
352 remote-vx960.c
353 remote-vxmips.c
354 remote-vxsparc.c
355 remote-wiggler.c
356 remote.c
357 reply_mig_hack.awk
358 rs6000-nat.c
359 rs6000-tdep.c
360 rom68k-rom.c
361 saber.suppress
362 scm-exp.c
363 scm-lang.c
364 scm-lang.h
365 scm-tags.h
366 scm-valprint.c
367 ser-e7kpc.c
368 ser-go32.c
369 ser-mac.c
370 ser-tcp.c
371 ser-unix.c
372 serial.c
373 serial.h
374 sh-stub.c
375 sh-tdep.c
376 sh3-rom.c
377 signals.h
378 sol-thread.c
379 solib.c
380 solib.h
381 somread.c
382 somsolib.c
383 somsolib.h
384 source.c
385 sparc-nat.c
386 sparc-stub.c
387 sparc-tdep.c
388 sparcl-stub.c
389 sparcl-tdep.c
390 sparclet-rom.c
391 sparclet-stub.c
392 srec.h
393 stabsread.c
394 stabsread.h
395 stack.c
396 standalone.c
397 stop-gdb.c
398 stuff.c
399 sun3-nat.c
400 sun386-nat.c
401 symfile.c
402 symfile.h
403 symm-nat.c
404 symm-tdep.c
405 symmisc.c
406 symtab.c
407 symtab.h
408 tahoe-tdep.c
409 target.c
410 target.h
411 terminal.h
412 testsuite
413 thread.c
414 top.c
415 top.h
416 typeprint.c
417 typeprint.h
418 ultra3-nat.c
419 ultra3-xdep.c
420 umax-xdep.c
421 utils.c
422 valarith.c
423 valops.c
424 valprint.c
425 valprint.h
426 value.h
427 values.c
428 vax-tdep.c
429 vx-share
430 w65-tdep.c
431 w89k-rom.c
432 win32-nat.c
433 xcoffread.c
434 xcoffsolib.c
435 xcoffsolib.h
436 xmodem.c
437 xmodem.h
438 z8k-tdep.c
439
440 # Things which are explicitly *not* kept, for now.
441
442 Things-to-lose:
443
444 ser-go32-para.c
445 HOW_TO_RELEASE
446
447 Do-last:
448
449 # Don't try to clean directories here, as the 'mv' command will fail.
450 # Also, grep fails on NFS mounted directories.
451 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
452 echo Catering to RMS by removing traces of \"gdbtk\"...
453 for i in * ; do
454 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
455 echo Removing traces of \"gdbtk\" out of $i...
456 cp $i new
457 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
458 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
459 echo Caching $i in .Recover...
460 mv $i .Recover
461 fi
462 mv new $i
463 fi
464 done
465 else
466 echo Leaving \"gdbtk\" in the sources...
467 for i in * ; do
468 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
469 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
470 cp $i new
471 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
472 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
473 echo Caching $i in .Recover...
474 mv $i .Recover
475 fi
476 mv new $i
477 fi
478 done
479 fi
480
481 arc_files="configure.tgt ChangeLog-95"
482
483 if ( echo $* | grep keep\-arc > /dev/null ) ; then
484 for i in $arc_files ; do
485 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
486 if [ -n "${verbose}" ] ; then
487 echo Keeping arc stuff in $i
488 fi
489 fi
490 done
491 else
492 for i in $arc_files ; do
493 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
494 if [ -n "${verbose}" ] ; then
495 echo Removing traces of \"arc\" from $i...
496 fi
497 cp $i new
498 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
499 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
500 if [ -n "${verbose}" ] ; then
501 echo Caching $i in .Recover...
502 fi
503 mv $i .Recover
504 fi
505 mv new $i
506 fi
507 done
508 fi
509
510 if ( echo $* | grep keep\-gm > /dev/null ) ; then
511 for i in * ; do
512 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
513 if [ -n "${verbose}" ] ; then
514 echo Keeping gm stuff in $i
515 fi
516 fi
517 done
518 else
519 for i in * ; do
520 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
521 if [ -n "${verbose}" ] ; then
522 echo Removing traces of \"gm\" from $i...
523 fi
524 cp $i new
525 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
526 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
527 if [ -n "${verbose}" ] ; then
528 echo Caching $i in .Recover...
529 fi
530 mv $i .Recover
531 fi
532 mv new $i
533 fi
534 done
535 fi
536
537 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
538 for i in * ; do
539 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
540 if [ -n "${verbose}" ] ; then
541 echo Keeping v850 stuff in $i
542 fi
543 fi
544 done
545 else
546 for i in * ; do
547 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
548 if [ -n "${verbose}" ] ; then
549 echo Removing traces of \"v850\" from $i...
550 fi
551 cp $i new
552 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
553 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
554 if [ -n "${verbose}" ] ; then
555 echo Caching $i in .Recover...
556 fi
557 mv $i .Recover
558 fi
559 mv new $i
560 fi
561 done
562 fi
563
564 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
565 for i in * ; do
566 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
567 if [ -n "${verbose}" ] ; then
568 echo Keeping r5900 stuff in $i
569 fi
570 fi
571 done
572 else
573 for i in * ; do
574 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
575 if [ -n "${verbose}" ] ; then
576 echo Removing traces of \"r5900\" from $i...
577 fi
578 cp $i new
579 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
580 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
581 if [ -n "${verbose}" ] ; then
582 echo Caching $i in .Recover...
583 fi
584 mv $i .Recover
585 fi
586 mv new $i
587 fi
588 done
589 fi
590
591 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
592 for i in * ; do
593 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
594 if [ -n "${verbose}" ] ; then
595 echo Keeping m32r stuff in $i
596 fi
597 fi
598 done
599 else
600 for i in * ; do
601 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
602 if [ -n "${verbose}" ] ; then
603 echo Removing traces of \"m32r\" from $i...
604 fi
605 cp $i new
606 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
607 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
608 if [ -n "${verbose}" ] ; then
609 echo Caching $i in .Recover...
610 fi
611 mv $i .Recover
612 fi
613 mv new $i
614 fi
615 done
616 fi
617
618 for i in * ; do
619 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
620 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
621 fi
622 done
623
624 #
625 # End of file.
This page took 0.042069 seconds and 5 git commands to generate.