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