* c-exp.y, m2-exp.y: Migrate code that has nothing to do with
[binutils-gdb.git] / gdb / .Sanitize
1 # .Sanitize for devo/gdb.
2
3 # Each directory to survive it's 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
15
16 Do-first:
17
18 if ( echo $* | grep keep\-chill > /dev/null ) ; then
19 keep_these_too="ch-exp.y ch-lang.c ch-lang.h"
20 fi
21
22 # All files listed between the "Things-to-keep:" line and the
23 # "Files-to-sed:" line will be kept. All other files will be removed.
24 # Directories listed in this section will have their own Sanitize
25 # called. Directories not listed will be removed in their entirety
26 # with rm -rf.
27
28 Things-to-keep:
29
30 .gdbinit
31 COPYING
32 ChangeLog
33 ChangeLog-3.x
34 ChangeLog-9091
35 Convex.notes
36 Makefile.in
37 NEWS
38 Projects
39 README
40 TODO
41 a68v-nat.c
42 alldeps.mak
43 alloca.c
44 altos-xdep.c
45 am29k-opcode.h
46 am29k-pinsn.c
47 am29k-tdep.c
48 arm-convert.s
49 arm-pinsn.c
50 arm-tdep.c
51 arm-xdep.c
52 blockframe.c
53 breakpoint.c
54 breakpoint.h
55 buildsym.c
56 buildsym.h
57 c-exp.y
58 c-lang.c
59 c-lang.h
60 call-cmds.h
61 coffread.c
62 command.c
63 command.h
64 config
65 configure.in
66 convex-pinsn.c
67 convex-tdep.c
68 convex-xdep.c
69 convx-opcode.h
70 copying.awk
71 copying.c
72 core.c
73 coredep.c
74 corelow.c
75 createtags
76 dbxread.c
77 defs.h
78 demangle.c
79 depend
80 doc
81 dwarfread.c
82 elfread.c
83 environ.c
84 environ.h
85 eval.c
86 exec.c
87 expprint.c
88 expression.h
89 findvar.c
90 fork-child.c
91 frame.h
92 gcc.patch
93 gdb-stabs.h
94 gdb.1
95 gdbcmd.h
96 gdbcore.h
97 gdbtypes.c
98 gdbtypes.h
99 go32-nat.c
100 go32-xdep.c
101 gould-pinsn.c
102 gould-xdep.c
103 h8300-tdep.c
104 hp300ux-nat.c
105 hppa-pinsn.c
106 hppab-core.c
107 hppab-nat.c
108 hppab-tdep.c
109 hppah-nat.c
110 hppah-tdep.c
111 i386-pinsn.c
112 i386-stub.c
113 i386-tdep.c
114 i386b-nat.c
115 i386mach-nat.c
116 i386v-nat.c
117 i386v4-nat.c
118 i387-tdep.c
119 i960-pinsn.c
120 i960-tdep.c
121 ieee-float.c
122 ieee-float.h
123 infcmd.c
124 inferior.h
125 inflow.c
126 infptrace.c
127 infrun.c
128 inftarg.c
129 irix4-nat.c
130 kdb-start.c
131 language.c
132 language.h
133 m2-exp.y
134 m2-lang.c
135 m2-lang.h
136 m68k-pinsn.c
137 m68k-stub.c
138 m68k-tdep.c
139 m88k-nat.c
140 m88k-pinsn.c
141 m88k-tdep.c
142 main.c
143 maint.c
144 mem-break.c
145 minimon.h
146 minsyms.c
147 mips-nat.c
148 mips-pinsn.c
149 mips-tdep.c
150 mipsread.c
151 munch
152 news-xdep.c
153 nindy-share
154 nindy-tdep.c
155 nm-apollo68b.h
156 nm-apollo68v.h
157 nm-delta88.h
158 nm-hp300bsd.h
159 nm-hp300hpux.h
160 nm-hppab.h
161 nm-hppah.h
162 nm-i386bsd.h
163 nm-i386mach.h
164 nm-i386sco.h
165 nm-i386v.h
166 nm-i386v4.h
167 nm-irix3.h
168 nm-irix4.h
169 nm-linux.h
170 nm-m88k.h
171 nm-mips.h
172 nm-news.h
173 nm-rs6000.h
174 nm-sun2.h
175 nm-sun3.h
176 nm-sun386.h
177 nm-sun4os4.h
178 nm-sysv4.h
179 nm-trash.h
180 nm-ultra3.h
181 nm-umax.h
182 nm-vax.h
183 ns32k-opcode.h
184 ns32k-pinsn.c
185 objfiles.c
186 objfiles.h
187 os68k-xdep.c
188 parse.c
189 parser-defs.h
190 partial-stab.h
191 printcmd.c
192 procfs.c
193 putenv.c
194 pyr-pinsn.c
195 pyr-tdep.c
196 pyr-xdep.c
197 regex.c
198 regex.h
199 rem-multi.shar
200 remote-adapt.c
201 remote-eb.c
202 remote-es1800.c
203 remote-hms.c
204 remote-mm.c
205 remote-nindy.c
206 remote-st2000.c
207 remote-vx.c
208 remote.c
209 rs6000-nat.c
210 rs6000-pinsn.c
211 rs6000-tdep.c
212 saber.suppress
213 ser-bsd.c
214 ser-go32.c
215 ser-termios.c
216 serial.h
217 signals.h
218 solib.c
219 solib.h
220 source.c
221 sparc-nat.c
222 sparc-pinsn.c
223 sparc-stub.c
224 sparc-tdep.c
225 stabsread.c
226 stabsread.h
227 stack.c
228 standalone.c
229 stuff.c
230 sun3-nat.c
231 sun386-nat.c
232 symfile.c
233 symfile.h
234 symm-tdep.c
235 symm-xdep.c
236 symmisc.c
237 symtab.c
238 symtab.h
239 tahoe-pinsn.c
240 target.c
241 target.h
242 terminal.h
243 tm-29k.h
244 tm-3b1.h
245 tm-68k-noun.h
246 tm-68k-un.h
247 tm-68k.h
248 tm-altos.h
249 tm-amix.h
250 tm-arm.h
251 tm-bigmips.h
252 tm-convex.h
253 tm-delta88.h
254 tm-es1800.h
255 tm-h8300.h
256 tm-hp300bsd.h
257 tm-hp300hpux.h
258 tm-hppa.h
259 tm-hppab.h
260 tm-hppah.h
261 tm-i386bsd.h
262 tm-i386v.h
263 tm-i386v4.h
264 tm-i960.h
265 tm-irix3.h
266 tm-isi.h
267 tm-linux.h
268 tm-m88k.h
269 tm-merlin.h
270 tm-mips.h
271 tm-news.h
272 tm-nindy960.h
273 tm-np1.h
274 tm-os68k.h
275 tm-pn.h
276 tm-pyr.h
277 tm-rs6000.h
278 tm-sparc.h
279 tm-spc-noun.h
280 tm-spc-un.h
281 tm-st2000.h
282 tm-stratus.h
283 tm-sun2.h
284 tm-sun2os4.h
285 tm-sun3.h
286 tm-sun386.h
287 tm-sun3os4.h
288 tm-sun4os4.h
289 tm-sun4sol2.h
290 tm-sunos.h
291 tm-symmetry.h
292 tm-sysv4.h
293 tm-tahoe.h
294 tm-ultra3.h
295 tm-umax.h
296 tm-vax.h
297 tm-vx68.h
298 tm-vx960.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 value.h
307 values.c
308 vax-pinsn.c
309 vx-share
310 xcoffexec.c
311 xcoffread.c
312 xcoffsolib.c
313 xcoffsolib.h
314 xm-3b1.h
315 xm-altos.h
316 xm-amix.h
317 xm-apollo68b.h
318 xm-apollo68v.h
319 xm-arm.h
320 xm-bigmips.h
321 xm-convex.h
322 xm-delta88.h
323 xm-go32.h
324 xm-hp300bsd.h
325 xm-hp300hpux.h
326 xm-hppab.h
327 xm-hppah.h
328 xm-i386bsd.h
329 xm-i386mach.h
330 xm-i386sco.h
331 xm-i386v.h
332 xm-i386v32.h
333 xm-i386v4.h
334 xm-irix3.h
335 xm-irix4.h
336 xm-isi.h
337 xm-linux.h
338 xm-m68k.h
339 xm-m88k.h
340 xm-merlin.h
341 xm-mips.h
342 xm-news.h
343 xm-news1000.h
344 xm-np1.h
345 xm-pn.h
346 xm-pyr.h
347 xm-rs6000.h
348 xm-rtbsd.h
349 xm-sparc.h
350 xm-stratus.h
351 xm-sun2.h
352 xm-sun3.h
353 xm-sun386.h
354 xm-sun3os4.h
355 xm-sun4os4.h
356 xm-sun4sol2.h
357 xm-symmetry.h
358 xm-sysv4.h
359 xm-tahoe.h
360 xm-ultra3.h
361 xm-umax.h
362 xm-vax.h
363 xm-vaxbsd.h
364 xm-vaxult.h
365
366 Do-last:
367
368 echo Thawing away the \"chill\"...
369
370 # Don't try to clean directories here, as the 'mv' command will fail.
371 # Also, grep fails on NFS mounted directories.
372 if ( echo $* | grep keep\-chill > /dev/null ) ; then
373 for i in * ; do
374 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
375 echo Keeping chill stuff in $i
376 fi
377 done
378 else
379 for i in * ; do
380 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
381 echo Thawing the \"chill\" out of $i...
382 cp $i new
383 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
384 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
385 echo Caching $i in .Recover...
386 mv $i .Recover
387 fi
388 mv new $i
389 fi
390 done
391 echo Thawing the \"chill\" out of Makefile.in...
392 cp Makefile.in new
393 sed -e 's/$(srcdir)\/ch-exp.y//g' \
394 -e 's/${srcdir}\/ch-exp.y//g' \
395 -e 's/ch-exp.y//g' \
396 -e 's/ch-exp.tab.c//g' \
397 -e 's/ch-exp.tab.o//g' \
398 -e 's/ch-lang.h//g' \
399 -e 's/ch-lang.c//g' \
400 -e 's/ch-lang.o//g' \
401 < Makefile.in > new
402 if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
403 echo Caching Makefile.in in .Recover...
404 mv Makefile.in .Recover
405 fi
406 mv new Makefile.in
407 fi
408
409 # End of file.