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