Support keep-arc flag.
[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 arc_files="arc-tdep.c remote-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${arc_files}
24 fi
25 else
26 lose_these_too="${arc_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${arc_files}
29 fi
30 fi
31
32 # mswin gdb is not really gdbtk, but is close enough for now.
33
34 gdbtk_files="gdbtk.c gdbtk.tcl mswin"
35
36 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
37 lose_these_too="${gdbtk_files} ${lose_these_too}"
38 if [ -n "${verbose}" ] ; then
39 echo Deleting ${gdbtk_files}
40 fi
41 else
42 keep_these_too="${gdbtk_files} ${keep_these_too}"
43 if [ -n "${verbose}" ] ; then
44 echo Keeping ${gdbtk_files}
45 fi
46 fi
47
48 # All files listed between the "Things-to-keep:" line and the
49 # "Files-to-sed:" line will be kept. All other files will be removed.
50 # Directories listed in this section will have their own Sanitize
51 # called. Directories not listed will be removed in their entirety
52 # with rm -rf.
53
54 Things-to-keep:
55
56 .gdbinit
57 29k-share
58 COPYING
59 ChangeLog
60 ChangeLog-3.x
61 ChangeLog-9091
62 ChangeLog-92
63 ChangeLog-93
64 ChangeLog-94
65 Makefile.in
66 NEWS
67 README
68 TODO
69 a29k-tdep.c
70 a68v-nat.c
71 alpha-nat.c
72 alpha-tdep.c
73 altos-xdep.c
74 annotate.c
75 annotate.h
76 arm-convert.s
77 arm-tdep.c
78 arm-xdep.c
79 array-rom.c
80 blockframe.c
81 breakpoint.c
82 breakpoint.h
83 buildsym.c
84 buildsym.h
85 c-exp.y
86 c-lang.c
87 c-lang.h
88 c-typeprint.c
89 c-valprint.c
90 call-cmds.h
91 ch-exp.y
92 ch-lang.c
93 ch-lang.h
94 ch-typeprint.c
95 ch-valprint.c
96 coff-solib.c
97 coff-solib.h
98 coffread.c
99 command.c
100 command.h
101 complaints.c
102 complaints.h
103 config
104 configure.in
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 gdbtypes.c
150 gdbtypes.h
151 go32-xdep.c
152 gould-tdep.c
153 gould-xdep.c
154 h8300-tdep.c
155 h8500-tdep.c
156 hp300ux-nat.c
157 hppa-tdep.c
158 hppab-nat.c
159 hppah-nat.c
160 hpread.c
161 i386-stub.c
162 i386-tdep.c
163 i386aix-nat.c
164 i386b-nat.c
165 i386ly-tdep.c
166 i386m3-nat.c
167 i386mach-nat.c
168 i386v-nat.c
169 i386v4-nat.c
170 i387-tdep.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-stub.c
192 m68k-tdep.c
193 m88k-nat.c
194 m88k-tdep.c
195 mac-defs.h
196 mac-xdep.c
197 macgdb.r
198 main.c
199 maint.c
200 mdebugread.c
201 mem-break.c
202 minimon.h
203 minsyms.c
204 mips-nat.c
205 mips-tdep.c
206 mipsm3-nat.c
207 mipsv4-nat.c
208 mipsread.c
209 monitor.h
210 monitor.c
211 mpw-config.in
212 mpw-make.in
213 news-xdep.c
214 nindy-share
215 nindy-tdep.c
216 nlm
217 nlmread.c
218 ns32k-tdep.c
219 ns32km3-nat.c
220 objfiles.c
221 objfiles.h
222 op50-rom.c
223 os9kread.c
224 osfsolib.c
225 parse.c
226 parser-defs.h
227 partial-stab.h
228 printcmd.c
229 procfs.c
230 ptx4-nat.c
231 pyr-tdep.c
232 pyr-xdep.c
233 regex.c
234 regex.h
235 rem-multi.shar
236 remote-adapt.c
237 remote-bug.c
238 remote-e7000.c
239 remote-eb.c
240 remote-es.c
241 remote-est.c
242 remote-hms.c
243 remote-mips.c
244 remote-mm.c
245 remote-nindy.c
246 remote-os9k.c
247 remote-pa.c
248 remote-sim.c
249 remote-sim.h
250 remote-st.c
251 remote-udi.c
252 remote-utils.c
253 remote-utils.h
254 remote-vx.c
255 remote-vx29k.c
256 remote-vx68.c
257 remote-vx960.c
258 remote-z8k.c
259 remote.c
260 rs6000-nat.c
261 rs6000-tdep.c
262 rom68k-rom.c
263 saber.suppress
264 ser-e7kpc.c
265 ser-go32.c
266 ser-mac.c
267 ser-tcp.c
268 ser-unix.c
269 serial.c
270 serial.h
271 sh-tdep.c
272 signals.h
273 solib.c
274 solib.h
275 somread.c
276 somsolib.c
277 somsolib.h
278 source.c
279 sparc-nat.c
280 sparc-stub.c
281 sparc-tdep.c
282 sparcl-stub.c
283 sparcl-tdep.c
284 sparclite
285 stabsread.c
286 stabsread.h
287 stack.c
288 standalone.c
289 stop-gdb.c
290 stuff.c
291 sun3-nat.c
292 sun386-nat.c
293 symfile.c
294 symfile.h
295 symm-nat.c
296 symm-tdep.c
297 symmisc.c
298 symtab.c
299 symtab.h
300 tahoe-tdep.c
301 target.c
302 target.h
303 terminal.h
304 testsuite
305 thread.c
306 thread.h
307 top.c
308 top.h
309 typeprint.c
310 typeprint.h
311 ultra3-nat.c
312 ultra3-xdep.c
313 umax-xdep.c
314 utils.c
315 valarith.c
316 valops.c
317 valprint.c
318 valprint.h
319 value.h
320 values.c
321 vax-tdep.c
322 vx-share
323 w65-tdep.c
324 w89k-rom.c
325 xcoffread.c
326 xcoffsolib.c
327 xcoffsolib.h
328 z8k-tdep.c
329
330
331 # Things which are explicitly *not* kept, for now.
332 # energize - Part of Lucid support.
333 # energize-patches - Part of Lucid support.
334 # energize.c - Part of Lucid support.
335 # energize.h - Part of Lucid support.
336 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
337 # the FORTH console ROMs. We never got the paperwork
338 # straight, since Sun's lawyers messed with the
339 # FSF contract and RMS didn't accept the changes.
340 # Written at SunLabs.
341 # state.c - Not used at the moment, keep for reference (fnf)
342 # state.h - Not used at the moment, keep for reference (fnf)
343
344 Things-to-lose:
345
346 energize
347 energize-patches
348 energize.c
349 energize.h
350 remote-mon.c
351 remote-sa.sparc.c
352 ser-go32-para.c
353 state.c
354 state.h
355
356 Do-last:
357
358 echo Catering to RMS by removing traces of \"gdbtk\"...
359
360 # Don't try to clean directories here, as the 'mv' command will fail.
361 # Also, grep fails on NFS mounted directories.
362 if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
363 for i in * ; do
364 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
365 echo Keeping gdbtk stuff in $i
366 fi
367 done
368 else
369 for i in * ; do
370 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
371 echo Removing traces of \"gdbtk\" out of $i...
372 cp $i new
373 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
374 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
375 echo Caching $i in .Recover...
376 mv $i .Recover
377 fi
378 mv new $i
379 fi
380 done
381 fi
382
383 r16_files="configure.in"
384
385 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
386 for i in $r16_files ; do
387 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
388 if [ -n "${verbose}" ] ; then
389 echo Keeping r16 stuff in $i
390 fi
391 fi
392 done
393 else
394 for i in $r16_files ; do
395 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
396 if [ -n "${verbose}" ] ; then
397 echo Removing traces of \"r16\" from $i...
398 fi
399 cp $i new
400 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
401 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
402 if [ -n "${verbose}" ] ; then
403 echo Caching $i in .Recover...
404 fi
405 mv $i .Recover
406 fi
407 mv new $i
408 fi
409 done
410 fi
411
412 arc_files="configure.in ChangeLog"
413
414 if ( echo $* | grep keep\-arc > /dev/null ) ; then
415 for i in $arc_files ; do
416 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
417 if [ -n "${verbose}" ] ; then
418 echo Keeping arc stuff in $i
419 fi
420 fi
421 done
422 else
423 for i in $arc_files ; do
424 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
425 if [ -n "${verbose}" ] ; then
426 echo Removing traces of \"arc\" from $i...
427 fi
428 cp $i new
429 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
430 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
431 if [ -n "${verbose}" ] ; then
432 echo Caching $i in .Recover...
433 fi
434 mv $i .Recover
435 fi
436 mv new $i
437 fi
438 done
439 fi
440
441 for i in * ; do
442 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
443 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
444 fi
445 done
446
447 #
448 # End of file.
This page took 0.03883 seconds and 5 git commands to generate.