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