v850 stuff
[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 d10v_files="d10v-tdep.c"
33
34 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
35 keep_these_too="${d10v_files} ${keep_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Keeping ${d10v_files}
38 fi
39 else
40 lose_these_too="${d10v_files} ${lose_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Deleting ${d10v_files}
43 fi
44 fi
45
46 gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl"
47
48 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
49 lose_these_too="${gdbtk_files} ${lose_these_too}"
50 if [ -n "${verbose}" ] ; then
51 echo Deleting ${gdbtk_files}
52 fi
53 else
54 keep_these_too="${gdbtk_files} ${keep_these_too}"
55 if [ -n "${verbose}" ] ; then
56 echo Keeping ${gdbtk_files}
57 fi
58 fi
59
60 # WinGDB files are not really ready to be part of FSF releases, but
61 # keep them for progressives and such.
62
63 mswin_files="mswin"
64
65 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
66 lose_these_too="${mswin_files} ${lose_these_too}"
67 if [ -n "${verbose}" ] ; then
68 echo Deleting ${mswin_files}
69 fi
70 else
71 keep_these_too="${mswin_files} ${keep_these_too}"
72 if [ -n "${verbose}" ] ; then
73 echo Keeping ${mswin_files}
74 fi
75 fi
76
77 gm_files="gmagic.c gmagic.h"
78
79 if ( echo $* | grep keep\-gm > /dev/null ) ; then
80 keep_these_too="${gm_files} ${keep_these_too}"
81 if [ -n "${verbose}" ] ; then
82 echo Keeping ${gm_files}
83 fi
84 else
85 lose_these_too="${gm_files} ${lose_these_too}"
86 if [ -n "${verbose}" ] ; then
87 echo Deleting ${gm_files}
88 fi
89 fi
90
91 v850_files="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 .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 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 callback.c
148 callback.h
149 c-exp.y
150 c-lang.c
151 c-lang.h
152 c-typeprint.c
153 c-valprint.c
154 call-cmds.h
155 ch-exp.c
156 ch-lang.c
157 ch-lang.h
158 ch-typeprint.c
159 ch-valprint.c
160 coff-solib.c
161 coff-solib.h
162 coffread.c
163 command.c
164 command.h
165 complaints.c
166 complaints.h
167 config
168 config.in
169 configure
170 configure.in
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 dbug-rom.c
184 dbxread.c
185 dcache.c
186 dcache.h
187 defs.h
188 delta68-nat.c
189 demangle.c
190 doc
191 dpx2-nat.c
192 dsrec.c
193 dst.h
194 dstread.c
195 dwarf2read.c
196 dwarfread.c
197 elfread.c
198 environ.c
199 environ.h
200 eval.c
201 exec.c
202 exc_request.defs
203 expprint.c
204 expression.h
205 f-exp.y
206 f-lang.c
207 f-lang.h
208 f-typeprint.c
209 f-valprint.c
210 findvar.c
211 fork-child.c
212 frame.h
213 gdb_stat.h
214 gdb_string.h
215 gdb-stabs.h
216 gdb.1
217 gdb.gdb
218 gdba.el
219 gdbcmd.h
220 gdbcore.h
221 gdbserver
222 gdbthread.h
223 gdbtypes.c
224 gdbtypes.h
225 gnu-nat.c
226 gnu-nat.h
227 gnu-regex.c
228 gnu-regex.h
229 go32-xdep.c
230 gould-tdep.c
231 gould-xdep.c
232 h8300-tdep.c
233 h8500-tdep.c
234 hp300ux-nat.c
235 hppa-tdep.c
236 hppab-nat.c
237 hppah-nat.c
238 hppam3-nat.c
239 hpread.c
240 i386-stub.c
241 i386-tdep.c
242 i386aix-nat.c
243 i386b-nat.c
244 i386gnu-nat.c
245 i386ly-tdep.c
246 i386m3-nat.c
247 i386mach-nat.c
248 i386v-nat.c
249 i386v4-nat.c
250 i387-tdep.c
251 i960-tdep.c
252 infcmd.c
253 inferior.h
254 inflow.c
255 infptrace.c
256 infrun.c
257 inftarg.c
258 irix4-nat.c
259 irix5-nat.c
260 isi-xdep.c
261 kdb-start.c
262 language.c
263 language.h
264 lynx-nat.c
265 m2-exp.y
266 m2-lang.c
267 m2-lang.h
268 m2-typeprint.c
269 m2-valprint.c
270 m3-nat.c
271 m68k-stub.c
272 m68k-tdep.c
273 m68knbsd-nat.c
274 m88k-nat.c
275 m88k-tdep.c
276 mac-defs.h
277 mac-xdep.c
278 mac-gdb.r
279 mac-nat.c
280 main.c
281 maint.c
282 mdebugread.c
283 mem-break.c
284 minimon.h
285 minsyms.c
286 mips-nat.c
287 mips-tdep.c
288 mipsm3-nat.c
289 mipsv4-nat.c
290 mipsread.c
291 mon960-rom.c
292 monitor.h
293 monitor.c
294 mpw-config.in
295 mpw-make.sed
296 msg.defs
297 msg_reply.defs
298 news-xdep.c
299 nindy-share
300 nindy-tdep.c
301 nlm
302 nlmread.c
303 notify.defs
304 ns32k-tdep.c
305 ns32km3-nat.c
306 objfiles.c
307 objfiles.h
308 op50-rom.c
309 os9kread.c
310 osfsolib.c
311 parse.c
312 parser-defs.h
313 partial-stab.h
314 ppcbug-rom.c
315 printcmd.c
316 process_reply.defs
317 procfs.c
318 ptx4-nat.c
319 pyr-tdep.c
320 pyr-xdep.c
321 remote-adapt.c
322 remote-array.c
323 remote-bug.c
324 remote-e7000.c
325 remote-eb.c
326 remote-es.c
327 remote-est.c
328 remote-hms.c
329 remote-mips.c
330 remote-mm.c
331 remote-nindy.c
332 remote-nrom.c
333 remote-os9k.c
334 remote-pa.c
335 remote-rdp.c
336 remote-sim.c
337 remote-sim.h
338 remote-st.c
339 remote-udi.c
340 remote-utils.c
341 remote-utils.h
342 remote-vx.c
343 remote-vx29k.c
344 remote-vx68.c
345 remote-vx960.c
346 remote-vxmips.c
347 remote-vxsparc.c
348 remote-wiggler.c
349 remote.c
350 reply_mig_hack.awk
351 rs6000-nat.c
352 rs6000-tdep.c
353 rom68k-rom.c
354 saber.suppress
355 scm-exp.c
356 scm-lang.c
357 scm-lang.h
358 scm-tags.h
359 scm-valprint.c
360 ser-e7kpc.c
361 ser-go32.c
362 ser-mac.c
363 ser-tcp.c
364 ser-unix.c
365 serial.c
366 serial.h
367 sh-stub.c
368 sh-tdep.c
369 sh3-rom.c
370 signals.h
371 sol-thread.c
372 solib.c
373 solib.h
374 somread.c
375 somsolib.c
376 somsolib.h
377 source.c
378 sparc-nat.c
379 sparc-stub.c
380 sparc-tdep.c
381 sparcl-stub.c
382 sparcl-tdep.c
383 sparclet-rom.c
384 srec.h
385 stabsread.c
386 stabsread.h
387 stack.c
388 standalone.c
389 stop-gdb.c
390 stuff.c
391 sun3-nat.c
392 sun386-nat.c
393 symfile.c
394 symfile.h
395 symm-nat.c
396 symm-tdep.c
397 symmisc.c
398 symtab.c
399 symtab.h
400 tahoe-tdep.c
401 target.c
402 target.h
403 terminal.h
404 testsuite
405 thread.c
406 top.c
407 top.h
408 typeprint.c
409 typeprint.h
410 ultra3-nat.c
411 ultra3-xdep.c
412 umax-xdep.c
413 utils.c
414 valarith.c
415 valops.c
416 valprint.c
417 valprint.h
418 value.h
419 values.c
420 vax-tdep.c
421 vx-share
422 w65-tdep.c
423 w89k-rom.c
424 win32-nat.c
425 xcoffread.c
426 xcoffsolib.c
427 xcoffsolib.h
428 xmodem.c
429 xmodem.h
430 z8k-tdep.c
431
432 # Things which are explicitly *not* kept, for now.
433
434 Things-to-lose:
435
436 ser-go32-para.c
437 HOW_TO_RELEASE
438
439 Do-last:
440
441 # Don't try to clean directories here, as the 'mv' command will fail.
442 # Also, grep fails on NFS mounted directories.
443 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
444 echo Catering to RMS by removing traces of \"gdbtk\"...
445 for i in * ; do
446 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
447 echo Removing traces of \"gdbtk\" out of $i...
448 cp $i new
449 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
450 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
451 echo Caching $i in .Recover...
452 mv $i .Recover
453 fi
454 mv new $i
455 fi
456 done
457 else
458 echo Leaving \"gdbtk\" in the sources...
459 for i in * ; do
460 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
461 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
462 cp $i new
463 sed -e '/start\-sanitize\-gdbtk/d' -e '/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 fi
472
473 arc_files="configure.in configure ChangeLog-95"
474
475 if ( echo $* | grep keep\-arc > /dev/null ) ; then
476 for i in $arc_files ; do
477 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
478 if [ -n "${verbose}" ] ; then
479 echo Keeping arc stuff in $i
480 fi
481 fi
482 done
483 else
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 Removing traces of \"arc\" from $i...
488 fi
489 cp $i new
490 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
491 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
492 if [ -n "${verbose}" ] ; then
493 echo Caching $i in .Recover...
494 fi
495 mv $i .Recover
496 fi
497 mv new $i
498 fi
499 done
500 fi
501
502 d10v_files="configure.in configure ChangeLog"
503
504 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
505 for i in $d10v_files ; do
506 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
507 if [ -n "${verbose}" ] ; then
508 echo Keeping d10v stuff in $i
509 fi
510 fi
511 done
512 else
513 for i in $d10v_files ; do
514 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
515 if [ -n "${verbose}" ] ; then
516 echo Removing traces of \"d10v\" from $i...
517 fi
518 cp $i new
519 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
520 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
521 if [ -n "${verbose}" ] ; then
522 echo Caching $i in .Recover...
523 fi
524 mv $i .Recover
525 fi
526 mv new $i
527 fi
528 done
529 fi
530
531 if ( echo $* | grep keep\-gm > /dev/null ) ; then
532 for i in * ; do
533 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
534 if [ -n "${verbose}" ] ; then
535 echo Keeping gm stuff in $i
536 fi
537 fi
538 done
539 else
540 for i in * ; do
541 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
542 if [ -n "${verbose}" ] ; then
543 echo Removing traces of \"gm\" from $i...
544 fi
545 cp $i new
546 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
547 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
548 if [ -n "${verbose}" ] ; then
549 echo Caching $i in .Recover...
550 fi
551 mv $i .Recover
552 fi
553 mv new $i
554 fi
555 done
556 fi
557
558 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
559 for i in * ; do
560 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
561 if [ -n "${verbose}" ] ; then
562 echo Keeping v850 stuff in $i
563 fi
564 fi
565 done
566 else
567 for i in * ; do
568 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
569 if [ -n "${verbose}" ] ; then
570 echo Removing traces of \"v850\" from $i...
571 fi
572 cp $i new
573 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
574 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
575 if [ -n "${verbose}" ] ; then
576 echo Caching $i in .Recover...
577 fi
578 mv $i .Recover
579 fi
580 mv new $i
581 fi
582 done
583 fi
584
585 for i in * ; do
586 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
587 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
588 fi
589 done
590
591 #
592 # End of file.
This page took 0.042652 seconds and 5 git commands to generate.