check makefile.in for arc, rce stuff
[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 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 gdbtk_files="gdbtk.c gdbtk.tcl"
33
34 if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
35 keep_these_too="${gdbtk_files} ${keep_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Keeping ${gdbtk_files}
38 fi
39 else
40 lose_these_too="${gdbtk_files} ${lose_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Deleting ${gdbtk_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 ChangeLog-94
63 Makefile.in
64 NEWS
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 gdbtypes.c
150 gdbtypes.h
151 go32-xdep.c
152 gould-pinsn.c
153 gould-xdep.c
154 h8300-tdep.c
155 h8500-tdep.c
156 hp300ux-nat.c
157 hppa-pinsn.c
158 hppa-tdep.c
159 hppab-nat.c
160 hppah-nat.c
161 hpread.c
162 i386-pinsn.c
163 i386-stub.c
164 i386-tdep.c
165 i386aix-nat.c
166 i386b-nat.c
167 i386ly-tdep.c
168 i386m3-nat.c
169 i386mach-nat.c
170 i386v-nat.c
171 i386v4-nat.c
172 i387-tdep.c
173 i960-pinsn.c
174 i960-tdep.c
175 infcmd.c
176 inferior.h
177 inflow.c
178 infptrace.c
179 infrun.c
180 inftarg.c
181 irix4-nat.c
182 irix5-nat.c
183 isi-xdep.c
184 kdb-start.c
185 language.c
186 language.h
187 lynx-nat.c
188 m2-exp.y
189 m2-lang.c
190 m2-lang.h
191 m2-typeprint.c
192 m2-valprint.c
193 m3-nat.c
194 m68k-pinsn.c
195 m68k-stub.c
196 m68k-tdep.c
197 m88k-nat.c
198 m88k-pinsn.c
199 m88k-tdep.c
200 main.c
201 maint.c
202 mdebugread.c
203 mem-break.c
204 minimon.h
205 minsyms.c
206 mips-nat.c
207 mips-pinsn.c
208 mips-tdep.c
209 mipsm3-nat.c
210 mipsv4-nat.c
211 mipsread.c
212 monitor.h
213 monitor.c
214 news-xdep.c
215 nindy-share
216 nindy-tdep.c
217 nlm
218 nlmread.c
219 nlmstub.def
220 ns32k-pinsn.c
221 ns32km3-nat.c
222 objfiles.c
223 objfiles.h
224 op50-rom.c
225 os9kread.c
226 osfsolib.c
227 parse.c
228 parser-defs.h
229 partial-stab.h
230 printcmd.c
231 procfs.c
232 ptx4-nat.c
233 pyr-pinsn.c
234 pyr-tdep.c
235 pyr-xdep.c
236 regex.c
237 regex.h
238 rem-multi.shar
239 remote-adapt.c
240 remote-bug.c
241 remote-e7000.c
242 remote-eb.c
243 remote-es.c
244 remote-est.c
245 remote-hms.c
246 remote-mips.c
247 remote-mm.c
248 remote-nindy.c
249 remote-os9k.c
250 remote-pa.c
251 remote-sim.c
252 remote-sim.h
253 remote-st.c
254 remote-udi.c
255 remote-utils.c
256 remote-utils.h
257 remote-vx.c
258 remote-z8k.c
259 remote.c
260 rs6000-nat.c
261 rs6000-pinsn.c
262 rs6000-tdep.c
263 rom68k-rom.c
264 saber.suppress
265 ser-e7kpc.c
266 ser-go32.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 sp64-tdep.c
280 sparc-nat.c
281 sparc-pinsn.c
282 sparc-stub.c
283 sparc-tdep.c
284 sparcl-stub.c
285 sparcl-tdep.c
286 sparclite
287 stabsread.c
288 stabsread.h
289 stack.c
290 standalone.c
291 stop-gdb.c
292 stuff.c
293 sun3-nat.c
294 sun386-nat.c
295 symfile.c
296 symfile.h
297 symm-nat.c
298 symm-tdep.c
299 symmisc.c
300 symtab.c
301 symtab.h
302 tahoe-pinsn.c
303 target.c
304 target.h
305 terminal.h
306 testsuite
307 thread.c
308 thread.h
309 top.c
310 top.h
311 typeprint.c
312 typeprint.h
313 ultra3-nat.c
314 ultra3-xdep.c
315 umax-xdep.c
316 utils.c
317 valarith.c
318 valops.c
319 valprint.c
320 valprint.h
321 value.h
322 values.c
323 vax-pinsn.c
324 vx-share
325 w89k-rom.c
326 xcoffread.c
327 xcoffsolib.c
328 xcoffsolib.h
329 z8k-tdep.c
330
331
332 # Things which are explicitly *not* kept, for now.
333 # energize - Part of Lucid support.
334 # energize-patches - Part of Lucid support.
335 # energize.c - Part of Lucid support.
336 # energize.h - Part of Lucid support.
337 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
338 # the FORTH console ROMs. We never got the paperwork
339 # straight, since Sun's lawyers messed with the
340 # FSF contract and RMS didn't accept the changes.
341 # Written at SunLabs.
342 # state.c - Not used at the moment, keep for reference (fnf)
343 # state.h - Not used at the moment, keep for reference (fnf)
344
345 Things-to-lose:
346
347 energize
348 energize-patches
349 energize.c
350 energize.h
351 remote-sa.sparc.c
352 state.c
353 state.h
354
355 Do-last:
356
357 echo Removing traces of \"mpw\"...
358
359 # Don't try to clean directories here, as the 'mv' command will fail.
360 # Also, grep fails on NFS mounted directories.
361 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
362 for i in * ; do
363 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
364 echo Keeping mpw stuff in $i
365 fi
366 done
367 else
368 for i in * ; do
369 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
370 echo Removing traces of \"mpw\" out of $i...
371 cp $i new
372 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
373 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
374 echo Caching $i in .Recover...
375 mv $i .Recover
376 fi
377 mv new $i
378 fi
379 done
380 fi
381
382 echo Catering to RMS by removing traces of \"gdbtk\"...
383
384 # Don't try to clean directories here, as the 'mv' command will fail.
385 # Also, grep fails on NFS mounted directories.
386 if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then
387 for i in * ; do
388 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
389 echo Keeping gdbtk stuff in $i
390 fi
391 done
392 else
393 for i in * ; do
394 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
395 echo Removing traces of \"gdbtk\" out of $i...
396 cp $i new
397 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
398 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
399 echo Caching $i in .Recover...
400 mv $i .Recover
401 fi
402 mv new $i
403 fi
404 done
405 fi
406
407 r16_files="configure.in"
408
409 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
410 for i in $r16_files ; do
411 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
412 if [ -n "${verbose}" ] ; then
413 echo Keeping r16 stuff in $i
414 fi
415 fi
416 done
417 else
418 for i in $r16_files ; do
419 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
420 if [ -n "${verbose}" ] ; then
421 echo Removing traces of \"r16\" from $i...
422 fi
423 cp $i new
424 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
425 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
426 if [ -n "${verbose}" ] ; then
427 echo Caching $i in .Recover...
428 fi
429 mv $i .Recover
430 fi
431 mv new $i
432 fi
433 done
434 fi
435
436 for i in * ; do
437 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
438 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
439 fi
440 done
441
442 #
443 # End of file.
This page took 0.039911 seconds and 4 git commands to generate.