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