added remote-vxmips.c, remotevxwparc.c to Things-to-keep
[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="README.GDBTK 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 cpu32bug-rom.c
116 cxux-nat.c
117 dbxread.c
118 dcache.c
119 dcache.h
120 defs.h
121 delta68-nat.c
122 demangle.c
123 doc
124 dpx2-nat.c
125 dst.h
126 dstread.c
127 dwarfread.c
128 elfread.c
129 environ.c
130 environ.h
131 eval.c
132 exec.c
133 expprint.c
134 expression.h
135 f-exp.y
136 f-lang.c
137 f-lang.h
138 f-typeprint.c
139 f-valprint.c
140 findvar.c
141 fork-child.c
142 frame.h
143 gcc.patch
144 gdb-stabs.h
145 gdb.1
146 gdb.gdb
147 gdba.el
148 gdbcmd.h
149 gdbcore.h
150 gdbserver
151 gdbtypes.c
152 gdbtypes.h
153 go32-xdep.c
154 gould-tdep.c
155 gould-xdep.c
156 h8300-tdep.c
157 h8500-tdep.c
158 hp300ux-nat.c
159 hppa-tdep.c
160 hppab-nat.c
161 hppah-nat.c
162 hpread.c
163 i386-stub.c
164 i386-tdep.c
165 i386aix-nat.c
166 i386b-nat.c
167 i386ly-tdep.c
168 i386m3-nat.c
169 i386mach-nat.c
170 i386v-nat.c
171 i386v4-nat.c
172 i387-tdep.c
173 i960-tdep.c
174 infcmd.c
175 inferior.h
176 inflow.c
177 infptrace.c
178 infrun.c
179 inftarg.c
180 irix4-nat.c
181 irix5-nat.c
182 isi-xdep.c
183 kdb-start.c
184 language.c
185 language.h
186 lynx-nat.c
187 m2-exp.y
188 m2-lang.c
189 m2-lang.h
190 m2-typeprint.c
191 m2-valprint.c
192 m3-nat.c
193 m68k-stub.c
194 m68k-tdep.c
195 m88k-nat.c
196 m88k-tdep.c
197 mac-defs.h
198 mac-xdep.c
199 macgdb.r
200 main.c
201 maint.c
202 mdebugread.c
203 mem-break.c
204 minimon.h
205 minsyms.c
206 mips-nat.c
207 mips-tdep.c
208 mipsm3-nat.c
209 mipsv4-nat.c
210 mipsread.c
211 monitor.h
212 monitor.c
213 mpw-config.in
214 mpw-make.in
215 news-xdep.c
216 nindy-share
217 nindy-tdep.c
218 nlm
219 nlmread.c
220 ns32k-tdep.c
221 ns32km3-nat.c
222 objfiles.c
223 objfiles.h
224 op50-rom.c
225 os9kread.c
226 osfsolib.c
227 parse.c
228 parser-defs.h
229 partial-stab.h
230 printcmd.c
231 procfs.c
232 ptx4-nat.c
233 pyr-tdep.c
234 pyr-xdep.c
235 regex.c
236 regex.h
237 remote-adapt.c
238 remote-array.c
239 remote-bug.c
240 remote-e7000.c
241 remote-eb.c
242 remote-es.c
243 remote-est.c
244 remote-hms.c
245 remote-mips.c
246 remote-mm.c
247 remote-nindy.c
248 remote-os9k.c
249 remote-pa.c
250 remote-sim.c
251 remote-sim.h
252 remote-st.c
253 remote-udi.c
254 remote-utils.c
255 remote-utils.h
256 remote-vx.c
257 remote-vx29k.c
258 remote-vx68.c
259 remote-vx960.c
260 remote-vxmips.c
261 remote-vxsparc.c
262 remote-z8k.c
263 remote.c
264 rs6000-nat.c
265 rs6000-tdep.c
266 rom68k-rom.c
267 saber.suppress
268 ser-e7kpc.c
269 ser-go32.c
270 ser-mac.c
271 ser-tcp.c
272 ser-unix.c
273 serial.c
274 serial.h
275 sh-tdep.c
276 signals.h
277 solib.c
278 solib.h
279 somread.c
280 somsolib.c
281 somsolib.h
282 source.c
283 sparc-nat.c
284 sparc-stub.c
285 sparc-tdep.c
286 sparcl-stub.c
287 sparcl-tdep.c
288 sparclite
289 stabsread.c
290 stabsread.h
291 stack.c
292 standalone.c
293 stop-gdb.c
294 stuff.c
295 sun3-nat.c
296 sun386-nat.c
297 symfile.c
298 symfile.h
299 symm-nat.c
300 symm-tdep.c
301 symmisc.c
302 symtab.c
303 symtab.h
304 tahoe-tdep.c
305 target.c
306 target.h
307 terminal.h
308 testsuite
309 thread.c
310 thread.h
311 top.c
312 top.h
313 typeprint.c
314 typeprint.h
315 ultra3-nat.c
316 ultra3-xdep.c
317 umax-xdep.c
318 utils.c
319 valarith.c
320 valops.c
321 valprint.c
322 valprint.h
323 value.h
324 values.c
325 vax-tdep.c
326 vx-share
327 w65-tdep.c
328 w89k-rom.c
329 xcoffread.c
330 xcoffsolib.c
331 xcoffsolib.h
332 xmodem.c
333 xmodem.h
334 z8k-tdep.c
335
336
337 # Things which are explicitly *not* kept, for now.
338 # energize - Part of Lucid support.
339 # energize-patches - Part of Lucid support.
340 # energize.c - Part of Lucid support.
341 # energize.h - Part of Lucid support.
342 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
343 # the FORTH console ROMs. We never got the paperwork
344 # straight, since Sun's lawyers messed with the
345 # FSF contract and RMS didn't accept the changes.
346 # Written at SunLabs.
347 # state.c - Not used at the moment, keep for reference (fnf)
348 # state.h - Not used at the moment, keep for reference (fnf)
349
350 Things-to-lose:
351
352 energize
353 energize-patches
354 energize.c
355 energize.h
356 remote-mon.c
357 remote-sa.sparc.c
358 ser-go32-para.c
359 state.c
360 state.h
361
362 Do-last:
363
364 echo Catering to RMS by removing traces of \"gdbtk\"...
365
366 # Don't try to clean directories here, as the 'mv' command will fail.
367 # Also, grep fails on NFS mounted directories.
368 if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
369 for i in * ; do
370 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
371 echo Keeping gdbtk stuff in $i
372 fi
373 done
374 else
375 for i in * ; do
376 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
377 echo Removing traces of \"gdbtk\" out of $i...
378 cp $i new
379 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
380 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
381 echo Caching $i in .Recover...
382 mv $i .Recover
383 fi
384 mv new $i
385 fi
386 done
387 fi
388
389 r16_files="configure.in"
390
391 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
392 for i in $r16_files ; do
393 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
394 if [ -n "${verbose}" ] ; then
395 echo Keeping r16 stuff in $i
396 fi
397 fi
398 done
399 else
400 for i in $r16_files ; do
401 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
402 if [ -n "${verbose}" ] ; then
403 echo Removing traces of \"r16\" from $i...
404 fi
405 cp $i new
406 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
407 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
408 if [ -n "${verbose}" ] ; then
409 echo Caching $i in .Recover...
410 fi
411 mv $i .Recover
412 fi
413 mv new $i
414 fi
415 done
416 fi
417
418 arc_files="configure.in ChangeLog"
419
420 if ( echo $* | grep keep\-arc > /dev/null ) ; then
421 for i in $arc_files ; do
422 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
423 if [ -n "${verbose}" ] ; then
424 echo Keeping arc stuff in $i
425 fi
426 fi
427 done
428 else
429 for i in $arc_files ; do
430 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
431 if [ -n "${verbose}" ] ; then
432 echo Removing traces of \"arc\" from $i...
433 fi
434 cp $i new
435 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
445 fi
446
447 for i in * ; do
448 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
449 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
450 fi
451 done
452
453 #
454 # End of file.