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