always keep dbug-rom.c
[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 # All files listed between the "Things-to-keep:" line and the
92 # "Files-to-sed:" line will be kept. All other files will be removed.
93 # Directories listed in this section will have their own Sanitize
94 # called. Directories not listed will be removed in their entirety
95 # with rm -rf.
96
97 Things-to-keep:
98
99 .gdbinit
100 29k-share
101 COPYING
102 ChangeLog
103 ChangeLog-3.x
104 ChangeLog-9091
105 ChangeLog-92
106 ChangeLog-93
107 ChangeLog-94
108 ChangeLog-95
109 Makefile.in
110 NEWS
111 README
112 TODO
113 a29k-tdep.c
114 a68v-nat.c
115 abug-rom.c
116 aclocal.m4
117 acconfig.h
118 alpha-nat.c
119 alpha-tdep.c
120 altos-xdep.c
121 annotate.c
122 annotate.h
123 arm-convert.s
124 arm-tdep.c
125 arm-xdep.c
126 bcache.c
127 bcache.h
128 blockframe.c
129 breakpoint.c
130 breakpoint.h
131 buildsym.c
132 buildsym.h
133 callback.c
134 callback.h
135 c-exp.y
136 c-lang.c
137 c-lang.h
138 c-typeprint.c
139 c-valprint.c
140 call-cmds.h
141 ch-exp.c
142 ch-lang.c
143 ch-lang.h
144 ch-typeprint.c
145 ch-valprint.c
146 coff-solib.c
147 coff-solib.h
148 coffread.c
149 command.c
150 command.h
151 complaints.c
152 complaints.h
153 config
154 config.in
155 configure
156 configure.in
157 convex-tdep.c
158 convex-xdep.c
159 copying.awk
160 copying.c
161 core-aout.c
162 core-regset.c
163 core-sol2.c
164 corefile.c
165 corelow.c
166 cp-valprint.c
167 cpu32bug-rom.c
168 cxux-nat.c
169 dbug-rom.c
170 dbxread.c
171 dcache.c
172 dcache.h
173 defs.h
174 delta68-nat.c
175 demangle.c
176 doc
177 dpx2-nat.c
178 dsrec.c
179 dst.h
180 dstread.c
181 dwarf2read.c
182 dwarfread.c
183 elfread.c
184 environ.c
185 environ.h
186 eval.c
187 exec.c
188 exc_request.defs
189 expprint.c
190 expression.h
191 f-exp.y
192 f-lang.c
193 f-lang.h
194 f-typeprint.c
195 f-valprint.c
196 findvar.c
197 fork-child.c
198 frame.h
199 gdb_stat.h
200 gdb_string.h
201 gdb-stabs.h
202 gdb.1
203 gdb.gdb
204 gdba.el
205 gdbcmd.h
206 gdbcore.h
207 gdbserver
208 gdbthread.h
209 gdbtypes.c
210 gdbtypes.h
211 gnu-nat.c
212 gnu-nat.h
213 gnu-regex.c
214 gnu-regex.h
215 go32-xdep.c
216 gould-tdep.c
217 gould-xdep.c
218 h8300-tdep.c
219 h8500-tdep.c
220 hp300ux-nat.c
221 hppa-tdep.c
222 hppab-nat.c
223 hppah-nat.c
224 hppam3-nat.c
225 hpread.c
226 i386-stub.c
227 i386-tdep.c
228 i386aix-nat.c
229 i386b-nat.c
230 i386gnu-nat.c
231 i386ly-tdep.c
232 i386m3-nat.c
233 i386mach-nat.c
234 i386v-nat.c
235 i386v4-nat.c
236 i387-tdep.c
237 i960-tdep.c
238 infcmd.c
239 inferior.h
240 inflow.c
241 infptrace.c
242 infrun.c
243 inftarg.c
244 irix4-nat.c
245 irix5-nat.c
246 isi-xdep.c
247 kdb-start.c
248 language.c
249 language.h
250 lynx-nat.c
251 m2-exp.y
252 m2-lang.c
253 m2-lang.h
254 m2-typeprint.c
255 m2-valprint.c
256 m3-nat.c
257 m68k-stub.c
258 m68k-tdep.c
259 m68knbsd-nat.c
260 m88k-nat.c
261 m88k-tdep.c
262 mac-defs.h
263 mac-xdep.c
264 mac-gdb.r
265 mac-nat.c
266 main.c
267 maint.c
268 mdebugread.c
269 mem-break.c
270 minimon.h
271 minsyms.c
272 mips-nat.c
273 mips-tdep.c
274 mipsm3-nat.c
275 mipsv4-nat.c
276 mipsread.c
277 mon960-rom.c
278 monitor.h
279 monitor.c
280 mpw-config.in
281 mpw-make.sed
282 msg.defs
283 msg_reply.defs
284 news-xdep.c
285 nindy-share
286 nindy-tdep.c
287 nlm
288 nlmread.c
289 notify.defs
290 ns32k-tdep.c
291 ns32km3-nat.c
292 objfiles.c
293 objfiles.h
294 op50-rom.c
295 os9kread.c
296 osfsolib.c
297 parse.c
298 parser-defs.h
299 partial-stab.h
300 ppcbug-rom.c
301 printcmd.c
302 process_reply.defs
303 procfs.c
304 ptx4-nat.c
305 pyr-tdep.c
306 pyr-xdep.c
307 remote-adapt.c
308 remote-array.c
309 remote-bug.c
310 remote-e7000.c
311 remote-eb.c
312 remote-es.c
313 remote-est.c
314 remote-hms.c
315 remote-mips.c
316 remote-mm.c
317 remote-nindy.c
318 remote-nrom.c
319 remote-os9k.c
320 remote-pa.c
321 remote-rdp.c
322 remote-sim.c
323 remote-sim.h
324 remote-st.c
325 remote-udi.c
326 remote-utils.c
327 remote-utils.h
328 remote-vx.c
329 remote-vx29k.c
330 remote-vx68.c
331 remote-vx960.c
332 remote-vxmips.c
333 remote-vxsparc.c
334 remote-wiggler.c
335 remote.c
336 reply_mig_hack.awk
337 rs6000-nat.c
338 rs6000-tdep.c
339 rom68k-rom.c
340 saber.suppress
341 scm-exp.c
342 scm-lang.c
343 scm-lang.h
344 scm-tags.h
345 scm-valprint.c
346 ser-e7kpc.c
347 ser-go32.c
348 ser-mac.c
349 ser-tcp.c
350 ser-unix.c
351 serial.c
352 serial.h
353 sh-stub.c
354 sh-tdep.c
355 sh3-rom.c
356 signals.h
357 sol-thread.c
358 solib.c
359 solib.h
360 somread.c
361 somsolib.c
362 somsolib.h
363 source.c
364 sparc-nat.c
365 sparc-stub.c
366 sparc-tdep.c
367 sparcl-stub.c
368 sparcl-tdep.c
369 sparclet-rom.c
370 srec.h
371 stabsread.c
372 stabsread.h
373 stack.c
374 standalone.c
375 stop-gdb.c
376 stuff.c
377 sun3-nat.c
378 sun386-nat.c
379 symfile.c
380 symfile.h
381 symm-nat.c
382 symm-tdep.c
383 symmisc.c
384 symtab.c
385 symtab.h
386 tahoe-tdep.c
387 target.c
388 target.h
389 terminal.h
390 testsuite
391 thread.c
392 top.c
393 top.h
394 typeprint.c
395 typeprint.h
396 ultra3-nat.c
397 ultra3-xdep.c
398 umax-xdep.c
399 utils.c
400 valarith.c
401 valops.c
402 valprint.c
403 valprint.h
404 value.h
405 values.c
406 vax-tdep.c
407 vx-share
408 w65-tdep.c
409 w89k-rom.c
410 win32-nat.c
411 xcoffread.c
412 xcoffsolib.c
413 xcoffsolib.h
414 xmodem.c
415 xmodem.h
416 z8k-tdep.c
417
418 # Things which are explicitly *not* kept, for now.
419
420 Things-to-lose:
421
422 ser-go32-para.c
423 HOW_TO_RELEASE
424
425 Do-last:
426
427 # Don't try to clean directories here, as the 'mv' command will fail.
428 # Also, grep fails on NFS mounted directories.
429 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
430 echo Catering to RMS by removing traces of \"gdbtk\"...
431 for i in * ; do
432 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
433 echo Removing traces of \"gdbtk\" out of $i...
434 cp $i new
435 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
436 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
437 echo Caching $i in .Recover...
438 mv $i .Recover
439 fi
440 mv new $i
441 fi
442 done
443 else
444 echo Leaving \"gdbtk\" in the sources...
445 for i in * ; do
446 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
447 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
448 cp $i new
449 sed -e '/start\-sanitize\-gdbtk/d' -e '/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 fi
458
459 arc_files="configure.in configure ChangeLog-95"
460
461 if ( echo $* | grep keep\-arc > /dev/null ) ; then
462 for i in $arc_files ; do
463 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
464 if [ -n "${verbose}" ] ; then
465 echo Keeping arc stuff in $i
466 fi
467 fi
468 done
469 else
470 for i in $arc_files ; do
471 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
472 if [ -n "${verbose}" ] ; then
473 echo Removing traces of \"arc\" from $i...
474 fi
475 cp $i new
476 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
477 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
478 if [ -n "${verbose}" ] ; then
479 echo Caching $i in .Recover...
480 fi
481 mv $i .Recover
482 fi
483 mv new $i
484 fi
485 done
486 fi
487
488 d10v_files="configure.in configure ChangeLog"
489
490 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
491 for i in $d10v_files ; do
492 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
493 if [ -n "${verbose}" ] ; then
494 echo Keeping d10v stuff in $i
495 fi
496 fi
497 done
498 else
499 for i in $d10v_files ; do
500 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
501 if [ -n "${verbose}" ] ; then
502 echo Removing traces of \"d10v\" from $i...
503 fi
504 cp $i new
505 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
506 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
507 if [ -n "${verbose}" ] ; then
508 echo Caching $i in .Recover...
509 fi
510 mv $i .Recover
511 fi
512 mv new $i
513 fi
514 done
515 fi
516
517 if ( echo $* | grep keep\-gm > /dev/null ) ; then
518 for i in * ; do
519 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
520 if [ -n "${verbose}" ] ; then
521 echo Keeping gm stuff in $i
522 fi
523 fi
524 done
525 else
526 for i in * ; do
527 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
528 if [ -n "${verbose}" ] ; then
529 echo Removing traces of \"gm\" from $i...
530 fi
531 cp $i new
532 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
533 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
534 if [ -n "${verbose}" ] ; then
535 echo Caching $i in .Recover...
536 fi
537 mv $i .Recover
538 fi
539 mv new $i
540 fi
541 done
542 fi
543
544 for i in * ; do
545 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
546 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
547 fi
548 done
549
550 #
551 # End of file.
This page took 0.083373 seconds and 5 git commands to generate.