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