* configure,configure.in: Add target sparclet.
[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 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-stub.c
337 sh-tdep.c
338 sh3-rom.c
339 signals.h
340 sol-thread.c
341 solib.c
342 solib.h
343 somread.c
344 somsolib.c
345 somsolib.h
346 source.c
347 sparc-nat.c
348 sparc-stub.c
349 sparc-tdep.c
350 sparcl-stub.c
351 sparcl-tdep.c
352 sparclet-rom.c
353 srec.h
354 stabsread.c
355 stabsread.h
356 stack.c
357 standalone.c
358 stop-gdb.c
359 stuff.c
360 sun3-nat.c
361 sun386-nat.c
362 symfile.c
363 symfile.h
364 symm-nat.c
365 symm-tdep.c
366 symmisc.c
367 symtab.c
368 symtab.h
369 tahoe-tdep.c
370 target.c
371 target.h
372 terminal.h
373 testsuite
374 thread.c
375 top.c
376 top.h
377 typeprint.c
378 typeprint.h
379 ultra3-nat.c
380 ultra3-xdep.c
381 umax-xdep.c
382 utils.c
383 valarith.c
384 valops.c
385 valprint.c
386 valprint.h
387 value.h
388 values.c
389 vax-tdep.c
390 vx-share
391 w65-tdep.c
392 w89k-rom.c
393 win32-nat.c
394 xcoffread.c
395 xcoffsolib.c
396 xcoffsolib.h
397 xmodem.c
398 xmodem.h
399 z8k-tdep.c
400
401 # Things which are explicitly *not* kept, for now.
402
403 Things-to-lose:
404
405 ser-go32-para.c
406 HOW_TO_RELEASE
407
408 Do-last:
409
410 # Don't try to clean directories here, as the 'mv' command will fail.
411 # Also, grep fails on NFS mounted directories.
412 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
413 echo Catering to RMS by removing traces of \"gdbtk\"...
414 for i in * ; do
415 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
416 echo Removing traces of \"gdbtk\" out of $i...
417 cp $i new
418 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
419 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
420 echo Caching $i in .Recover...
421 mv $i .Recover
422 fi
423 mv new $i
424 fi
425 done
426 else
427 echo Leaving \"gdbtk\" in the sources...
428 for i in * ; do
429 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
430 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
431 cp $i new
432 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
433 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
434 echo Caching $i in .Recover...
435 mv $i .Recover
436 fi
437 mv new $i
438 fi
439 done
440 fi
441
442 arc_files="configure.in configure ChangeLog-95"
443
444 if ( echo $* | grep keep\-arc > /dev/null ) ; then
445 for i in $arc_files ; do
446 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
447 if [ -n "${verbose}" ] ; then
448 echo Keeping arc stuff in $i
449 fi
450 fi
451 done
452 else
453 for i in $arc_files ; do
454 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
455 if [ -n "${verbose}" ] ; then
456 echo Removing traces of \"arc\" from $i...
457 fi
458 cp $i new
459 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
460 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
461 if [ -n "${verbose}" ] ; then
462 echo Caching $i in .Recover...
463 fi
464 mv $i .Recover
465 fi
466 mv new $i
467 fi
468 done
469 fi
470
471 if ( echo $* | grep keep\-gm > /dev/null ) ; then
472 for i in * ; do
473 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
474 if [ -n "${verbose}" ] ; then
475 echo Keeping gm stuff in $i
476 fi
477 fi
478 done
479 else
480 for i in * ; do
481 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
482 if [ -n "${verbose}" ] ; then
483 echo Removing traces of \"gm\" from $i...
484 fi
485 cp $i new
486 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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 h8s_files="ChangeLog h8300-tdep.c"
499 if ( echo $* | grep keep\-h8s > /dev/null ) ; then
500 for i in $h8s_files ; do
501 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
502 if [ -n "${verbose}" ] ; then
503 echo Keeping h8s stuff in $i
504 fi
505 fi
506 done
507 else
508 for i in $h8s_files ; do
509 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
510 if [ -n "${verbose}" ] ; then
511 echo Removing traces of \"h8s\" from $i...
512 fi
513 cp $i new
514 sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
515 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
516 if [ -n "${verbose}" ] ; then
517 echo Caching $i in .Recover...
518 fi
519 mv $i .Recover
520 fi
521 mv new $i
522 fi
523 done
524 fi
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.
This page took 0.042411 seconds and 5 git commands to generate.