Sanitize out gdbtk references unless keep-gdbtk specified
[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 Makefile.in
63 NEWS
64 README
65 TODO
66 a29k-pinsn.c
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-pinsn.c
76 arm-tdep.c
77 arm-xdep.c
78 blockframe.c
79 breakpoint.c
80 breakpoint.h
81 buildsym.c
82 buildsym.h
83 c-exp.y
84 c-lang.c
85 c-lang.h
86 c-typeprint.c
87 c-valprint.c
88 call-cmds.h
89 ch-exp.y
90 ch-lang.c
91 ch-lang.h
92 ch-typeprint.c
93 ch-valprint.c
94 coff-solib.c
95 coff-solib.h
96 coffread.c
97 command.c
98 command.h
99 complaints.c
100 complaints.h
101 config
102 configure.in
103 convex-pinsn.c
104 convex-tdep.c
105 convex-xdep.c
106 copying.awk
107 copying.c
108 core-sol2.c
109 core-svr4.c
110 core.c
111 coredep.c
112 corelow.c
113 cp-valprint.c
114 cxux-nat.c
115 dbxread.c
116 dcache.c
117 dcache.h
118 defs.h
119 delta68-nat.c
120 demangle.c
121 doc
122 dpx2-nat.c
123 dst.h
124 dstread.c
125 dwarfread.c
126 elfread.c
127 environ.c
128 environ.h
129 eval.c
130 exec.c
131 expprint.c
132 expression.h
133 f-exp.y
134 f-lang.c
135 f-lang.h
136 f-typeprint.c
137 f-valprint.c
138 findvar.c
139 fork-child.c
140 frame.h
141 gcc.patch
142 gdb-stabs.h
143 gdb.1
144 gdba.el
145 gdbcmd.h
146 gdbcore.h
147 gdbserver
148 gdbtypes.c
149 gdbtypes.h
150 go32-xdep.c
151 gould-pinsn.c
152 gould-xdep.c
153 h8300-tdep.c
154 h8500-tdep.c
155 hp300ux-nat.c
156 hppa-pinsn.c
157 hppa-tdep.c
158 hppab-nat.c
159 hppah-nat.c
160 hpread.c
161 i386-pinsn.c
162 i386-stub.c
163 i386-tdep.c
164 i386aix-nat.c
165 i386b-nat.c
166 i386ly-tdep.c
167 i386m3-nat.c
168 i386mach-nat.c
169 i386v-nat.c
170 i386v4-nat.c
171 i387-tdep.c
172 i960-pinsn.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-pinsn.c
194 m68k-stub.c
195 m68k-tdep.c
196 m88k-nat.c
197 m88k-pinsn.c
198 m88k-tdep.c
199 main.c
200 maint.c
201 mdebugread.c
202 mem-break.c
203 minimon.h
204 minsyms.c
205 mips-nat.c
206 mips-pinsn.c
207 mips-tdep.c
208 mipsm3-nat.c
209 mipsv4-nat.c
210 mipsread.c
211 monitor.h
212 monitor.c
213 news-xdep.c
214 nindy-share
215 nindy-tdep.c
216 nlm
217 nlmread.c
218 nlmstub.def
219 ns32k-pinsn.c
220 ns32km3-nat.c
221 objfiles.c
222 objfiles.h
223 op50-rom.c
224 os9kread.c
225 osfsolib.c
226 parse.c
227 parser-defs.h
228 partial-stab.h
229 printcmd.c
230 procfs.c
231 ptx4-nat.c
232 pyr-pinsn.c
233 pyr-tdep.c
234 pyr-xdep.c
235 regex.c
236 regex.h
237 rem-multi.shar
238 remote-adapt.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-z8k.c
258 remote.c
259 rs6000-nat.c
260 rs6000-pinsn.c
261 rs6000-tdep.c
262 rom68k-rom.c
263 saber.suppress
264 ser-e7kpc.c
265 ser-go32.c
266 ser-tcp.c
267 ser-unix.c
268 serial.c
269 serial.h
270 sh-tdep.c
271 signals.h
272 solib.c
273 solib.h
274 somread.c
275 somsolib.c
276 somsolib.h
277 source.c
278 sp64-tdep.c
279 sparc-nat.c
280 sparc-pinsn.c
281 sparc-stub.c
282 sparc-tdep.c
283 sparcl-stub.c
284 sparcl-tdep.c
285 sparclite
286 stabsread.c
287 stabsread.h
288 stack.c
289 standalone.c
290 stop-gdb.c
291 stuff.c
292 sun3-nat.c
293 sun386-nat.c
294 symfile.c
295 symfile.h
296 symm-nat.c
297 symm-tdep.c
298 symmisc.c
299 symtab.c
300 symtab.h
301 tahoe-pinsn.c
302 target.c
303 target.h
304 terminal.h
305 testsuite
306 thread.c
307 thread.h
308 top.c
309 top.h
310 typeprint.c
311 typeprint.h
312 ultra3-nat.c
313 ultra3-xdep.c
314 umax-xdep.c
315 utils.c
316 valarith.c
317 valops.c
318 valprint.c
319 valprint.h
320 value.h
321 values.c
322 vax-pinsn.c
323 vx-share
324 w89k-rom.c
325 xcoffread.c
326 xcoffsolib.c
327 xcoffsolib.h
328 z8k-tdep.c
329
330
331 # Things which are explicitly *not* kept, for now.
332 # energize - Part of Lucid support.
333 # energize-patches - Part of Lucid support.
334 # energize.c - Part of Lucid support.
335 # energize.h - Part of Lucid support.
336 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
337 # the FORTH console ROMs. We never got the paperwork
338 # straight, since Sun's lawyers messed with the
339 # FSF contract and RMS didn't accept the changes.
340 # Written at SunLabs.
341 # state.c - Not used at the moment, keep for reference (fnf)
342 # state.h - Not used at the moment, keep for reference (fnf)
343
344 Things-to-lose:
345
346 energize
347 energize-patches
348 energize.c
349 energize.h
350 remote-sa.sparc.c
351 state.c
352 state.h
353
354 Do-last:
355
356 echo Removing traces of \"mpw\"...
357
358 # Don't try to clean directories here, as the 'mv' command will fail.
359 # Also, grep fails on NFS mounted directories.
360 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
361 for i in * ; do
362 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
363 echo Keeping mpw stuff in $i
364 fi
365 done
366 else
367 for i in * ; do
368 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
369 echo Removing traces of \"mpw\" out of $i...
370 cp $i new
371 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
372 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
373 echo Caching $i in .Recover...
374 mv $i .Recover
375 fi
376 mv new $i
377 fi
378 done
379 fi
380
381 echo Catering to RMS by removing traces of \"gdbtk\"...
382
383 # Don't try to clean directories here, as the 'mv' command will fail.
384 # Also, grep fails on NFS mounted directories.
385 if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
386 for i in * ; do
387 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
388 echo Keeping gdbtk stuff in $i
389 fi
390 done
391 else
392 for i in * ; do
393 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
394 echo Removing traces of \"gdbtk\" out of $i...
395 cp $i new
396 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
397 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
398 echo Caching $i in .Recover...
399 mv $i .Recover
400 fi
401 mv new $i
402 fi
403 done
404 fi
405
406 r16_files="configure.in"
407
408 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
409 for i in $r16_files ; do
410 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
411 if [ -n "${verbose}" ] ; then
412 echo Keeping r16 stuff in $i
413 fi
414 fi
415 done
416 else
417 for i in $r16_files ; do
418 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
419 if [ -n "${verbose}" ] ; then
420 echo Removing traces of \"r16\" from $i...
421 fi
422 cp $i new
423 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
424 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
425 if [ -n "${verbose}" ] ; then
426 echo Caching $i in .Recover...
427 fi
428 mv $i .Recover
429 fi
430 mv new $i
431 fi
432 done
433 fi
434
435 for i in * ; do
436 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
437 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
438 fi
439 done
440
441 #
442 # End of file.