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