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