keep Windows GDB, believe it or not
[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-sa.sparc.c
345 state.c
346 state.h
347 arc-tdep.c
348 remote-arc.c
349
350 Do-last:
351
352 echo Removing traces of \"mpw\"...
353
354 # Don't try to clean directories here, as the 'mv' command will fail.
355 # Also, grep fails on NFS mounted directories.
356 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
357 for i in * ; do
358 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
359 echo Keeping mpw stuff in $i
360 fi
361 done
362 else
363 for i in * ; do
364 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
365 echo Removing traces of \"mpw\" out of $i...
366 cp $i new
367 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
368 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
369 echo Caching $i in .Recover...
370 mv $i .Recover
371 fi
372 mv new $i
373 fi
374 done
375 fi
376
377 echo Catering to RMS by removing traces of \"gdbtk\"...
378
379 # Don't try to clean directories here, as the 'mv' command will fail.
380 # Also, grep fails on NFS mounted directories.
381 if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
382 for i in * ; do
383 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
384 echo Keeping gdbtk stuff in $i
385 fi
386 done
387 else
388 for i in * ; do
389 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
390 echo Removing traces of \"gdbtk\" out of $i...
391 cp $i new
392 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
393 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
394 echo Caching $i in .Recover...
395 mv $i .Recover
396 fi
397 mv new $i
398 fi
399 done
400 fi
401
402 r16_files="configure.in"
403
404 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
405 for i in $r16_files ; do
406 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
407 if [ -n "${verbose}" ] ; then
408 echo Keeping r16 stuff in $i
409 fi
410 fi
411 done
412 else
413 for i in $r16_files ; do
414 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
415 if [ -n "${verbose}" ] ; then
416 echo Removing traces of \"r16\" from $i...
417 fi
418 cp $i new
419 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
420 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
421 if [ -n "${verbose}" ] ; then
422 echo Caching $i in .Recover...
423 fi
424 mv $i .Recover
425 fi
426 mv new $i
427 fi
428 done
429 fi
430
431 arc_files="configure.in"
432
433 if ( echo $* | grep keep\-arc > /dev/null ) ; then
434 for i in $arc_files ; do
435 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
436 if [ -n "${verbose}" ] ; then
437 echo Keeping arc stuff in $i
438 fi
439 fi
440 done
441 else
442 for i in $arc_files ; do
443 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
444 if [ -n "${verbose}" ] ; then
445 echo Removing traces of \"arc\" from $i...
446 fi
447 cp $i new
448 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
449 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
450 if [ -n "${verbose}" ] ; then
451 echo Caching $i in .Recover...
452 fi
453 mv $i .Recover
454 fi
455 mv new $i
456 fi
457 done
458 fi
459
460 for i in * ; do
461 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
462 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
463 fi
464 done
465
466 #
467 # End of file.