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