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