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