Keep gdbtk.c and gdbtk.tcl.
[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 gm_files="mpw-xconfig.in mpw-init.c ChangeLog.gm"
33
34 if ( echo $* | grep keep\-gm > /dev/null ) ; then
35 keep_these_too="${gm_files} ${keep_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Keeping ${gm_files}
38 fi
39 else
40 lose_these_too="${gm_files} ${lose_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Deleting ${gm_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 Projects
65 README
66 TODO
67 a29k-pinsn.c
68 a29k-tdep.c
69 a68v-nat.c
70 alpha-nat.c
71 alpha-tdep.c
72 altos-xdep.c
73 annotate.c
74 annotate.h
75 arm-convert.s
76 arm-pinsn.c
77 arm-tdep.c
78 arm-xdep.c
79 blockframe.c
80 breakpoint.c
81 breakpoint.h
82 buildsym.c
83 buildsym.h
84 c-exp.y
85 c-lang.c
86 c-lang.h
87 c-typeprint.c
88 c-valprint.c
89 call-cmds.h
90 ch-exp.y
91 ch-lang.c
92 ch-lang.h
93 ch-typeprint.c
94 ch-valprint.c
95 coff-solib.c
96 coff-solib.h
97 coffread.c
98 command.c
99 command.h
100 complaints.c
101 complaints.h
102 config
103 configure.in
104 convex-pinsn.c
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 findvar.c
135 fork-child.c
136 frame.h
137 gcc.patch
138 gdb-stabs.h
139 gdb.1
140 gdba.el
141 gdbcmd.h
142 gdbcore.h
143 gdbserver
144 gdbtk.c
145 gdbtk.tcl
146 gdbtypes.c
147 gdbtypes.h
148 go32-xdep.c
149 gould-pinsn.c
150 gould-xdep.c
151 h8300-tdep.c
152 h8500-tdep.c
153 hp300ux-nat.c
154 hppa-pinsn.c
155 hppa-tdep.c
156 hppab-nat.c
157 hppah-nat.c
158 i386-nlmstub.c
159 i386-pinsn.c
160 i386-stub.c
161 i386-tdep.c
162 i386aix-nat.c
163 i386b-nat.c
164 i386ly-tdep.c
165 i386m3-nat.c
166 i386mach-nat.c
167 i386v-nat.c
168 i386v4-nat.c
169 i387-tdep.c
170 i960-pinsn.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-pinsn.c
192 m68k-stub.c
193 m68k-tdep.c
194 m88k-nat.c
195 m88k-pinsn.c
196 m88k-tdep.c
197 main.c
198 maint.c
199 mdebugread.c
200 mem-break.c
201 minimon.h
202 minsyms.c
203 mips-nat.c
204 mips-pinsn.c
205 mips-tdep.c
206 mipsm3-nat.c
207 mipsv4-nat.c
208 mipsread.c
209 monitor.h
210 news-xdep.c
211 nindy-share
212 nindy-tdep.c
213 nlmread.c
214 ns32k-opcode.h
215 ns32k-pinsn.c
216 ns32km3-nat.c
217 objfiles.c
218 objfiles.h
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-pinsn.c
228 pyr-tdep.c
229 pyr-xdep.c
230 regex.c
231 regex.h
232 rem-multi.shar
233 remote-adapt.c
234 remote-bug.c
235 remote-e7000.c
236 remote-eb.c
237 remote-es.c
238 remote-hms.c
239 remote-mips.c
240 remote-mm.c
241 remote-mon.c
242 remote-nindy.c
243 remote-os9k.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-z8k.c
252 remote.c
253 rs6000-nat.c
254 rs6000-pinsn.c
255 rs6000-tdep.c
256 saber.suppress
257 ser-e7kpc.c
258 ser-go32.c
259 ser-tcp.c
260 ser-unix.c
261 serial.c
262 serial.h
263 sh-tdep.c
264 signals.h
265 solib.c
266 solib.h
267 somread.c
268 source.c
269 sp64-tdep.c
270 sparc-nat.c
271 sparc-pinsn.c
272 sparc-stub.c
273 sparc-tdep.c
274 sparcl-stub.c
275 sparcl-tdep.c
276 sparclite
277 stabsread.c
278 stabsread.h
279 stack.c
280 standalone.c
281 stop-gdb.c
282 stuff.c
283 sun3-nat.c
284 sun386-nat.c
285 symfile.c
286 symfile.h
287 symm-nat.c
288 symm-tdep.c
289 symmisc.c
290 symtab.c
291 symtab.h
292 tahoe-pinsn.c
293 target.c
294 target.h
295 terminal.h
296 testsuite
297 thread.c
298 thread.h
299 top.c
300 top.h
301 typeprint.c
302 typeprint.h
303 ultra3-nat.c
304 ultra3-xdep.c
305 umax-xdep.c
306 utils.c
307 valarith.c
308 valops.c
309 valprint.c
310 valprint.h
311 value.h
312 values.c
313 vax-pinsn.c
314 vx-share
315 xcoffexec.c
316 xcoffread.c
317 xcoffsolib.c
318 xcoffsolib.h
319 z8k-tdep.c
320
321
322 # Things which are explicitly *not* kept, for now.
323 # energize - Part of Lucid support.
324 # energize-patches - Part of Lucid support.
325 # energize.c - Part of Lucid support.
326 # energize.h - Part of Lucid support.
327 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
328 # the FORTH console ROMs. We never got the paperwork
329 # straight, since Sun's lawyers messed with the
330 # FSF contract and RMS didn't accept the changes.
331 # Written at SunLabs.
332 # state.c - Not used at the moment, keep for reference (fnf)
333 # state.h - Not used at the moment, keep for reference (fnf)
334 # tests - Old test programs for GDB, pre-gdbtest and pre-
335 # DejaGnu.
336
337 Things-to-lose:
338
339 energize
340 energize-patches
341 energize.c
342 energize.h
343 remote-sa.sparc.c
344 state.c
345 state.h
346 tests
347
348 Do-last:
349
350 echo Removing traces of \"mpw\"...
351
352 # Don't try to clean directories here, as the 'mv' command will fail.
353 # Also, grep fails on NFS mounted directories.
354 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
355 for i in * ; do
356 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
357 echo Keeping mpw stuff in $i
358 fi
359 done
360 else
361 for i in * ; do
362 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
363 echo Removing traces of \"mpw\" out of $i...
364 cp $i new
365 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
366 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
367 echo Caching $i in .Recover...
368 mv $i .Recover
369 fi
370 mv new $i
371 fi
372 done
373 fi
374
375 # End of file.