Merge supposedly (but not really) GM-specific bits into general MPW config
[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 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 hpread_files="hpread.c ChangeLog.hpread"
33
34 if ( echo $* | grep keep\-hpread > /dev/null ) ; then
35 keep_these_too="${hpread_files} ${keep_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Keeping ${hpread_files}
38 fi
39 else
40 lose_these_too="${hpread_files} ${lose_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Deleting ${hpread_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 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 gdbtk.c
150 gdbtk.tcl
151 gdbtypes.c
152 gdbtypes.h
153 go32-xdep.c
154 gould-pinsn.c
155 gould-xdep.c
156 h8300-tdep.c
157 h8500-tdep.c
158 hp300ux-nat.c
159 hppa-pinsn.c
160 hppa-tdep.c
161 hppab-nat.c
162 hppah-nat.c
163 i386-nlmstub.c
164 i386-pinsn.c
165 i386-stub.c
166 i386-tdep.c
167 i386aix-nat.c
168 i386b-nat.c
169 i386ly-tdep.c
170 i386m3-nat.c
171 i386mach-nat.c
172 i386v-nat.c
173 i386v4-nat.c
174 i387-tdep.c
175 i960-pinsn.c
176 i960-tdep.c
177 infcmd.c
178 inferior.h
179 inflow.c
180 infptrace.c
181 infrun.c
182 inftarg.c
183 irix4-nat.c
184 irix5-nat.c
185 isi-xdep.c
186 kdb-start.c
187 language.c
188 language.h
189 lynx-nat.c
190 m2-exp.y
191 m2-lang.c
192 m2-lang.h
193 m2-typeprint.c
194 m2-valprint.c
195 m3-nat.c
196 m68k-pinsn.c
197 m68k-stub.c
198 m68k-tdep.c
199 m88k-nat.c
200 m88k-pinsn.c
201 m88k-tdep.c
202 main.c
203 maint.c
204 mdebugread.c
205 mem-break.c
206 minimon.h
207 minsyms.c
208 mips-nat.c
209 mips-pinsn.c
210 mips-tdep.c
211 mipsm3-nat.c
212 mipsv4-nat.c
213 mipsread.c
214 monitor.h
215 news-xdep.c
216 nindy-share
217 nindy-tdep.c
218 nlm
219 nlmread.c
220 ns32k-pinsn.c
221 ns32km3-nat.c
222 objfiles.c
223 objfiles.h
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-hms.c
244 remote-mips.c
245 remote-mm.c
246 remote-mon.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 saber.suppress
263 ser-e7kpc.c
264 ser-go32.c
265 ser-tcp.c
266 ser-unix.c
267 serial.c
268 serial.h
269 sh-tdep.c
270 signals.h
271 solib.c
272 solib.h
273 somread.c
274 source.c
275 sp64-tdep.c
276 sparc-nat.c
277 sparc-pinsn.c
278 sparc-stub.c
279 sparc-tdep.c
280 sparcl-stub.c
281 sparcl-tdep.c
282 sparclite
283 stabsread.c
284 stabsread.h
285 stack.c
286 standalone.c
287 stop-gdb.c
288 stuff.c
289 sun3-nat.c
290 sun386-nat.c
291 symfile.c
292 symfile.h
293 symm-nat.c
294 symm-tdep.c
295 symmisc.c
296 symtab.c
297 symtab.h
298 tahoe-pinsn.c
299 target.c
300 target.h
301 terminal.h
302 testsuite
303 thread.c
304 thread.h
305 top.c
306 top.h
307 typeprint.c
308 typeprint.h
309 ultra3-nat.c
310 ultra3-xdep.c
311 umax-xdep.c
312 utils.c
313 valarith.c
314 valops.c
315 valprint.c
316 valprint.h
317 value.h
318 values.c
319 vax-pinsn.c
320 vx-share
321 xcoffexec.c
322 xcoffread.c
323 xcoffsolib.c
324 xcoffsolib.h
325 z8k-tdep.c
326
327
328 # Things which are explicitly *not* kept, for now.
329 # energize - Part of Lucid support.
330 # energize-patches - Part of Lucid support.
331 # energize.c - Part of Lucid support.
332 # energize.h - Part of Lucid support.
333 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
334 # the FORTH console ROMs. We never got the paperwork
335 # straight, since Sun's lawyers messed with the
336 # FSF contract and RMS didn't accept the changes.
337 # Written at SunLabs.
338 # state.c - Not used at the moment, keep for reference (fnf)
339 # state.h - Not used at the moment, keep for reference (fnf)
340 # tests - Old test programs for GDB, pre-gdbtest and pre-
341 # DejaGnu.
342
343 Things-to-lose:
344
345 energize
346 energize-patches
347 energize.c
348 energize.h
349 remote-sa.sparc.c
350 state.c
351 state.h
352 tests
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 Removing traces of \"hpread\"...
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\-hpread > /dev/null ) ; then
386 for i in * ; do
387 if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
388 echo Keeping hpread stuff in $i
389 fi
390 done
391 else
392 for i in * ; do
393 if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then
394 echo Removing traces of \"hpread\" out of $i...
395 cp $i new
396 sed '/start\-sanitize\-hpread/,/end-\sanitize\-hpread/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
407 # End of file.
This page took 0.038629 seconds and 5 git commands to generate.