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