* monitor.c: Move all xmodem stuff into xmodem.[ch]. Remove
[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 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-z8k.c
261 remote.c
262 rs6000-nat.c
263 rs6000-tdep.c
264 rom68k-rom.c
265 saber.suppress
266 ser-e7kpc.c
267 ser-go32.c
268 ser-mac.c
269 ser-tcp.c
270 ser-unix.c
271 serial.c
272 serial.h
273 sh-tdep.c
274 signals.h
275 solib.c
276 solib.h
277 somread.c
278 somsolib.c
279 somsolib.h
280 source.c
281 sparc-nat.c
282 sparc-stub.c
283 sparc-tdep.c
284 sparcl-stub.c
285 sparcl-tdep.c
286 sparclite
287 stabsread.c
288 stabsread.h
289 stack.c
290 standalone.c
291 stop-gdb.c
292 stuff.c
293 sun3-nat.c
294 sun386-nat.c
295 symfile.c
296 symfile.h
297 symm-nat.c
298 symm-tdep.c
299 symmisc.c
300 symtab.c
301 symtab.h
302 tahoe-tdep.c
303 target.c
304 target.h
305 terminal.h
306 testsuite
307 thread.c
308 thread.h
309 top.c
310 top.h
311 typeprint.c
312 typeprint.h
313 ultra3-nat.c
314 ultra3-xdep.c
315 umax-xdep.c
316 utils.c
317 valarith.c
318 valops.c
319 valprint.c
320 valprint.h
321 value.h
322 values.c
323 vax-tdep.c
324 vx-share
325 w65-tdep.c
326 w89k-rom.c
327 xcoffread.c
328 xcoffsolib.c
329 xcoffsolib.h
330 xmodem.c
331 xmodem.h
332 z8k-tdep.c
333
334
335 # Things which are explicitly *not* kept, for now.
336 # energize - Part of Lucid support.
337 # energize-patches - Part of Lucid support.
338 # energize.c - Part of Lucid support.
339 # energize.h - Part of Lucid support.
340 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
341 # the FORTH console ROMs. We never got the paperwork
342 # straight, since Sun's lawyers messed with the
343 # FSF contract and RMS didn't accept the changes.
344 # Written at SunLabs.
345 # state.c - Not used at the moment, keep for reference (fnf)
346 # state.h - Not used at the moment, keep for reference (fnf)
347
348 Things-to-lose:
349
350 energize
351 energize-patches
352 energize.c
353 energize.h
354 remote-mon.c
355 remote-sa.sparc.c
356 ser-go32-para.c
357 state.c
358 state.h
359
360 Do-last:
361
362 echo Catering to RMS by removing traces of \"gdbtk\"...
363
364 # Don't try to clean directories here, as the 'mv' command will fail.
365 # Also, grep fails on NFS mounted directories.
366 if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
367 for i in * ; do
368 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
369 echo Keeping gdbtk stuff in $i
370 fi
371 done
372 else
373 for i in * ; do
374 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
375 echo Removing traces of \"gdbtk\" out of $i...
376 cp $i new
377 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
378 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
379 echo Caching $i in .Recover...
380 mv $i .Recover
381 fi
382 mv new $i
383 fi
384 done
385 fi
386
387 r16_files="configure.in"
388
389 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
390 for i in $r16_files ; do
391 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
392 if [ -n "${verbose}" ] ; then
393 echo Keeping r16 stuff in $i
394 fi
395 fi
396 done
397 else
398 for i in $r16_files ; do
399 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
400 if [ -n "${verbose}" ] ; then
401 echo Removing traces of \"r16\" from $i...
402 fi
403 cp $i new
404 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
405 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
406 if [ -n "${verbose}" ] ; then
407 echo Caching $i in .Recover...
408 fi
409 mv $i .Recover
410 fi
411 mv new $i
412 fi
413 done
414 fi
415
416 arc_files="configure.in ChangeLog"
417
418 if ( echo $* | grep keep\-arc > /dev/null ) ; then
419 for i in $arc_files ; do
420 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
421 if [ -n "${verbose}" ] ; then
422 echo Keeping arc stuff in $i
423 fi
424 fi
425 done
426 else
427 for i in $arc_files ; do
428 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
429 if [ -n "${verbose}" ] ; then
430 echo Removing traces of \"arc\" from $i...
431 fi
432 cp $i new
433 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
434 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
435 if [ -n "${verbose}" ] ; then
436 echo Caching $i in .Recover...
437 fi
438 mv $i .Recover
439 fi
440 mv new $i
441 fi
442 done
443 fi
444
445 for i in * ; do
446 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
447 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
448 fi
449 done
450
451 #
452 # End of file.
This page took 0.040462 seconds and 5 git commands to generate.