* gdb.base/a2-run.exp: Change messages to be more explicit about
[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
63# All files listed between the "Things-to-keep:" line and the
64# "Files-to-sed:" line will be kept. All other files will be removed.
65# Directories listed in this section will have their own Sanitize
66# called. Directories not listed will be removed in their entirety
67# with rm -rf.
68
69Things-to-keep:
70
71.gdbinit
7229k-share
73COPYING
74ChangeLog
75ChangeLog-3.x
76ChangeLog-9091
77ChangeLog-92
78ChangeLog-93
79ChangeLog-94
80Makefile.in
81NEWS
82README
83TODO
84a29k-tdep.c
85a68v-nat.c
86aclocal.m4
87alpha-nat.c
88alpha-tdep.c
89altos-xdep.c
90annotate.c
91annotate.h
92arm-convert.s
93arm-tdep.c
94arm-xdep.c
95blockframe.c
96breakpoint.c
97breakpoint.h
98buildsym.c
99buildsym.h
100c-exp.y
101c-lang.c
102c-lang.h
103c-typeprint.c
104c-valprint.c
105call-cmds.h
106ch-exp.y
107ch-lang.c
108ch-lang.h
109ch-typeprint.c
110ch-valprint.c
111coff-solib.c
112coff-solib.h
113coffread.c
114command.c
115command.h
116complaints.c
117complaints.h
118config
119configure
120configure.in
121convex-tdep.c
122convex-xdep.c
123copying.awk
124copying.c
125core-sol2.c
126core-svr4.c
127core.c
128coredep.c
129corelow.c
130cp-valprint.c
131cpu32bug-rom.c
132cxux-nat.c
133dbxread.c
134dcache.c
135dcache.h
136defs.h
137delta68-nat.c
138demangle.c
139doc
140dpx2-nat.c
141dst.h
142dstread.c
143dwarfread.c
144elfread.c
145environ.c
146environ.h
147eval.c
148exec.c
149expprint.c
150expression.h
151f-exp.y
152f-lang.c
153f-lang.h
154f-typeprint.c
155f-valprint.c
156findvar.c
157fork-child.c
158frame.h
159gcc.patch
160gdb-stabs.h
161gdb.1
162gdb.gdb
163gdba.el
164gdbcmd.h
165gdbcore.h
166gdbserver
167gdbtypes.c
168gdbtypes.h
169go32-xdep.c
170gould-tdep.c
171gould-xdep.c
172h8300-tdep.c
173h8500-tdep.c
174hp300ux-nat.c
175hppa-tdep.c
176hppab-nat.c
177hppah-nat.c
178hppam3-nat.c
179hpread.c
180i386-stub.c
181i386-tdep.c
182i386aix-nat.c
183i386b-nat.c
184i386ly-tdep.c
185i386m3-nat.c
186i386mach-nat.c
187i386v-nat.c
188i386v4-nat.c
189i387-tdep.c
190i960-tdep.c
191infcmd.c
192inferior.h
193inflow.c
194infptrace.c
195infrun.c
196inftarg.c
197irix4-nat.c
198irix5-nat.c
199isi-xdep.c
200kdb-start.c
201language.c
202language.h
203lynx-nat.c
204m2-exp.y
205m2-lang.c
206m2-lang.h
207m2-typeprint.c
208m2-valprint.c
209m3-nat.c
210m68k-stub.c
211m68k-tdep.c
212m88k-nat.c
213m88k-tdep.c
214mac-defs.h
215mac-xdep.c
216macgdb.r
217main.c
218maint.c
219mdebugread.c
220mem-break.c
221minimon.h
222minsyms.c
223mips-nat.c
224mips-tdep.c
225mipsm3-nat.c
226mipsv4-nat.c
227mipsread.c
228monitor.h
229monitor.c
230mpw-config.in
231mpw-make.in
232news-xdep.c
233nindy-share
234nindy-tdep.c
235nlm
236nlmread.c
237ns32k-tdep.c
238ns32km3-nat.c
239objfiles.c
240objfiles.h
241op50-rom.c
242os9kread.c
243osfsolib.c
244parse.c
245parser-defs.h
246partial-stab.h
247printcmd.c
248procfs.c
249ptx4-nat.c
250pyr-tdep.c
251pyr-xdep.c
252regex.c
253regex.h
254remote-adapt.c
255remote-array.c
256remote-bug.c
257remote-e7000.c
258remote-eb.c
259remote-es.c
260remote-est.c
261remote-hms.c
262remote-mips.c
263remote-mm.c
264remote-nindy.c
265remote-nrom.c
266remote-os9k.c
267remote-pa.c
268remote-sim.c
269remote-sim.h
270remote-st.c
271remote-udi.c
272remote-utils.c
273remote-utils.h
274remote-vx.c
275remote-vx29k.c
276remote-vx68.c
277remote-vx960.c
278remote-vxmips.c
279remote-vxsparc.c
280remote.c
281rs6000-nat.c
282rs6000-tdep.c
283rom68k-rom.c
284saber.suppress
285ser-e7kpc.c
286ser-go32.c
287ser-mac.c
288ser-tcp.c
289ser-unix.c
290serial.c
291serial.h
292sh-tdep.c
293signals.h
294solib.c
295solib.h
296somread.c
297somsolib.c
298somsolib.h
299source.c
300sparc-nat.c
301sparc-stub.c
302sparc-tdep.c
303sparcl-stub.c
304sparcl-tdep.c
305stabsread.c
306stabsread.h
307stack.c
308standalone.c
309stop-gdb.c
310stuff.c
311sun3-nat.c
312sun386-nat.c
313symfile.c
314symfile.h
315symm-nat.c
316symm-tdep.c
317symmisc.c
318symtab.c
319symtab.h
320tahoe-tdep.c
321target.c
322target.h
323terminal.h
324testsuite
325thread.c
326thread.h
327top.c
328top.h
329typeprint.c
330typeprint.h
331ultra3-nat.c
332ultra3-xdep.c
333umax-xdep.c
334utils.c
335valarith.c
336valops.c
337valprint.c
338valprint.h
339value.h
340values.c
341vax-tdep.c
342vx-share
343w65-tdep.c
344w89k-rom.c
345xcoffread.c
346xcoffsolib.c
347xcoffsolib.h
348xmodem.c
349xmodem.h
350z8k-tdep.c
351
352# Things which are explicitly *not* kept, for now.
353
354Things-to-lose:
355
356ser-go32-para.c
357
358Do-last:
359
360# Don't try to clean directories here, as the 'mv' command will fail.
361# Also, grep fails on NFS mounted directories.
362if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
363 echo Catering to RMS by removing traces of \"gdbtk\"...
364 for i in * ; do
365 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
366 echo Removing traces of \"gdbtk\" out of $i...
367 cp $i new
368 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
369 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
370 echo Caching $i in .Recover...
371 mv $i .Recover
372 fi
373 mv new $i
374 fi
375 done
376else
377 echo Leaving \"gdbtk\" in the sources...
378 for i in * ; do
379 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
380 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
381 cp $i new
382 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
383 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
384 echo Caching $i in .Recover...
385 mv $i .Recover
386 fi
387 mv new $i
388 fi
389 done
390fi
391
392r16_files="configure.in"
393
394if ( echo $* | grep keep\-r16 > /dev/null ) ; then
395 for i in $r16_files ; do
396 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
397 if [ -n "${verbose}" ] ; then
398 echo Keeping r16 stuff in $i
399 fi
400 fi
401 done
402else
403 for i in $r16_files ; do
404 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
405 if [ -n "${verbose}" ] ; then
406 echo Removing traces of \"r16\" from $i...
407 fi
408 cp $i new
409 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
410 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
411 if [ -n "${verbose}" ] ; then
412 echo Caching $i in .Recover...
413 fi
414 mv $i .Recover
415 fi
416 mv new $i
417 fi
418 done
419fi
420
421arc_files="configure.in ChangeLog"
422
423if ( echo $* | grep keep\-arc > /dev/null ) ; then
424 for i in $arc_files ; do
425 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
426 if [ -n "${verbose}" ] ; then
427 echo Keeping arc stuff in $i
428 fi
429 fi
430 done
431else
432 for i in $arc_files ; do
433 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
434 if [ -n "${verbose}" ] ; then
435 echo Removing traces of \"arc\" from $i...
436 fi
437 cp $i new
438 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
450for i in * ; do
451 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
452 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
453 fi
454done
455
456#
457# End of file.
This page took 0.027977 seconds and 4 git commands to generate.