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