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