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