Keep mon960 files.
[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 gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl"
33
34 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
35 lose_these_too="${gdbtk_files} ${lose_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Deleting ${gdbtk_files}
38 fi
39 else
40 keep_these_too="${gdbtk_files} ${keep_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Keeping ${gdbtk_files}
43 fi
44 fi
45
46 # WinGDB files are not really ready to be part of FSF releases, but
47 # keep them for progressives and such.
48
49 mswin_files="mswin"
50
51 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
52 lose_these_too="${mswin_files} ${lose_these_too}"
53 if [ -n "${verbose}" ] ; then
54 echo Deleting ${mswin_files}
55 fi
56 else
57 keep_these_too="${mswin_files} ${keep_these_too}"
58 if [ -n "${verbose}" ] ; then
59 echo Keeping ${mswin_files}
60 fi
61 fi
62
63 gm_files="gmagic.c gmagic.h"
64
65 if ( echo $* | grep keep\-gm > /dev/null ) ; then
66 keep_these_too="${gm_files} ${keep_these_too}"
67 if [ -n "${verbose}" ] ; then
68 echo Keeping ${gm_files}
69 fi
70 else
71 lose_these_too="${gm_files} ${lose_these_too}"
72 if [ -n "${verbose}" ] ; then
73 echo Deleting ${gm_files}
74 fi
75 fi
76
77 # All files listed between the "Things-to-keep:" line and the
78 # "Files-to-sed:" line will be kept. All other files will be removed.
79 # Directories listed in this section will have their own Sanitize
80 # called. Directories not listed will be removed in their entirety
81 # with rm -rf.
82
83 Things-to-keep:
84
85 .gdbinit
86 29k-share
87 COPYING
88 ChangeLog
89 ChangeLog-3.x
90 ChangeLog-9091
91 ChangeLog-92
92 ChangeLog-93
93 ChangeLog-94
94 ChangeLog-95
95 Makefile.in
96 NEWS
97 README
98 TODO
99 a29k-tdep.c
100 a68v-nat.c
101 aclocal.m4
102 alpha-nat.c
103 alpha-tdep.c
104 altos-xdep.c
105 annotate.c
106 annotate.h
107 arm-convert.s
108 arm-tdep.c
109 arm-xdep.c
110 bcache.c
111 bcache.h
112 blockframe.c
113 breakpoint.c
114 breakpoint.h
115 buildsym.c
116 buildsym.h
117 callback.c
118 callback.h
119 c-exp.y
120 c-lang.c
121 c-lang.h
122 c-typeprint.c
123 c-valprint.c
124 call-cmds.h
125 ch-exp.c
126 ch-lang.c
127 ch-lang.h
128 ch-typeprint.c
129 ch-valprint.c
130 coff-solib.c
131 coff-solib.h
132 coffread.c
133 command.c
134 command.h
135 complaints.c
136 complaints.h
137 config
138 configure
139 configure.in
140 convex-tdep.c
141 convex-xdep.c
142 copying.awk
143 copying.c
144 core-aout.c
145 core-regset.c
146 core-sol2.c
147 corefile.c
148 corelow.c
149 cp-valprint.c
150 cpu32bug-rom.c
151 cxux-nat.c
152 dbxread.c
153 dcache.c
154 dcache.h
155 defs.h
156 delta68-nat.c
157 demangle.c
158 doc
159 dpx2-nat.c
160 dsrec.c
161 dst.h
162 dstread.c
163 dwarfread.c
164 elfread.c
165 environ.c
166 environ.h
167 eval.c
168 exec.c
169 expprint.c
170 expression.h
171 f-exp.y
172 f-lang.c
173 f-lang.h
174 f-typeprint.c
175 f-valprint.c
176 findvar.c
177 fork-child.c
178 frame.h
179 gdb_stat.h
180 gdb_string.h
181 gdb-stabs.h
182 gdb.1
183 gdb.gdb
184 gdba.el
185 gdbcmd.h
186 gdbcore.h
187 gdbserver
188 gdbtypes.c
189 gdbtypes.h
190 gnu-regex.c
191 gnu-regex.h
192 go32-xdep.c
193 gould-tdep.c
194 gould-xdep.c
195 h8300-tdep.c
196 h8500-tdep.c
197 hp300ux-nat.c
198 hppa-tdep.c
199 hppab-nat.c
200 hppah-nat.c
201 hppam3-nat.c
202 hpread.c
203 i386-stub.c
204 i386-tdep.c
205 i386aix-nat.c
206 i386b-nat.c
207 i386ly-tdep.c
208 i386m3-nat.c
209 i386mach-nat.c
210 i386v-nat.c
211 i386v4-nat.c
212 i387-tdep.c
213 i960-tdep.c
214 infcmd.c
215 inferior.h
216 inflow.c
217 infptrace.c
218 infrun.c
219 inftarg.c
220 irix4-nat.c
221 irix5-nat.c
222 isi-xdep.c
223 kdb-start.c
224 language.c
225 language.h
226 lynx-nat.c
227 m2-exp.y
228 m2-lang.c
229 m2-lang.h
230 m2-typeprint.c
231 m2-valprint.c
232 m3-nat.c
233 m68k-stub.c
234 m68k-tdep.c
235 m68knbsd-nat.c
236 m88k-nat.c
237 m88k-tdep.c
238 mac-defs.h
239 mac-xdep.c
240 mac-gdb.r
241 mac-nat.c
242 main.c
243 maint.c
244 mdebugread.c
245 mem-break.c
246 minimon.h
247 minsyms.c
248 mips-nat.c
249 mips-tdep.c
250 mipsm3-nat.c
251 mipsv4-nat.c
252 mipsread.c
253 mon960-rom.c
254 monitor.h
255 monitor.c
256 mpw-config.in
257 mpw-make.sed
258 news-xdep.c
259 nindy-share
260 nindy-tdep.c
261 nlm
262 nlmread.c
263 ns32k-tdep.c
264 ns32km3-nat.c
265 objfiles.c
266 objfiles.h
267 op50-rom.c
268 os9kread.c
269 osfsolib.c
270 parse.c
271 parser-defs.h
272 partial-stab.h
273 ppcbug-rom.c
274 printcmd.c
275 procfs.c
276 ptx4-nat.c
277 pyr-tdep.c
278 pyr-xdep.c
279 remote-adapt.c
280 remote-array.c
281 remote-bug.c
282 remote-e7000.c
283 remote-eb.c
284 remote-es.c
285 remote-est.c
286 remote-hms.c
287 remote-mips.c
288 remote-mm.c
289 remote-nindy.c
290 remote-nrom.c
291 remote-os9k.c
292 remote-pa.c
293 remote-rdp.c
294 remote-sim.c
295 remote-sim.h
296 remote-st.c
297 remote-udi.c
298 remote-utils.c
299 remote-utils.h
300 remote-vx.c
301 remote-vx29k.c
302 remote-vx68.c
303 remote-vx960.c
304 remote-vxmips.c
305 remote-vxsparc.c
306 remote.c
307 rs6000-nat.c
308 rs6000-tdep.c
309 rom68k-rom.c
310 saber.suppress
311 scm-exp.c
312 scm-lang.c
313 scm-lang.h
314 scm-tags.h
315 scm-valprint.c
316 ser-e7kpc.c
317 ser-go32.c
318 ser-mac.c
319 ser-tcp.c
320 ser-unix.c
321 serial.c
322 serial.h
323 sh-tdep.c
324 sh3-rom.c
325 signals.h
326 solib.c
327 solib.h
328 somread.c
329 somsolib.c
330 somsolib.h
331 source.c
332 sparc-nat.c
333 sparc-stub.c
334 sparc-tdep.c
335 sparcl-stub.c
336 sparcl-tdep.c
337 srec.h
338 stabsread.c
339 stabsread.h
340 stack.c
341 standalone.c
342 stop-gdb.c
343 stuff.c
344 sun3-nat.c
345 sun386-nat.c
346 symfile.c
347 symfile.h
348 symm-nat.c
349 symm-tdep.c
350 symmisc.c
351 symtab.c
352 symtab.h
353 tahoe-tdep.c
354 target.c
355 target.h
356 terminal.h
357 testsuite
358 thread.c
359 thread.h
360 top.c
361 top.h
362 typeprint.c
363 typeprint.h
364 ultra3-nat.c
365 ultra3-xdep.c
366 umax-xdep.c
367 utils.c
368 valarith.c
369 valops.c
370 valprint.c
371 valprint.h
372 value.h
373 values.c
374 vax-tdep.c
375 vx-share
376 w65-tdep.c
377 w89k-rom.c
378 win32-nat.c
379 xcoffread.c
380 xcoffsolib.c
381 xcoffsolib.h
382 xmodem.c
383 xmodem.h
384 z8k-tdep.c
385
386 # Things which are explicitly *not* kept, for now.
387
388 Things-to-lose:
389
390 ser-go32-para.c
391 HOW_TO_RELEASE
392
393 Do-last:
394
395 # Don't try to clean directories here, as the 'mv' command will fail.
396 # Also, grep fails on NFS mounted directories.
397 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
398 echo Catering to RMS by removing traces of \"gdbtk\"...
399 for i in * ; do
400 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
401 echo Removing traces of \"gdbtk\" out of $i...
402 cp $i new
403 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
404 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
405 echo Caching $i in .Recover...
406 mv $i .Recover
407 fi
408 mv new $i
409 fi
410 done
411 else
412 echo Leaving \"gdbtk\" in the sources...
413 for i in * ; do
414 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
415 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
416 cp $i new
417 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
418 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
419 echo Caching $i in .Recover...
420 mv $i .Recover
421 fi
422 mv new $i
423 fi
424 done
425 fi
426
427 r16_files="configure.in configure"
428
429 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
430 for i in $r16_files ; do
431 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
432 if [ -n "${verbose}" ] ; then
433 echo Keeping r16 stuff in $i
434 fi
435 fi
436 done
437 else
438 for i in $r16_files ; do
439 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
440 if [ -n "${verbose}" ] ; then
441 echo Removing traces of \"r16\" from $i...
442 fi
443 cp $i new
444 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
445 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
446 if [ -n "${verbose}" ] ; then
447 echo Caching $i in .Recover...
448 fi
449 mv $i .Recover
450 fi
451 mv new $i
452 fi
453 done
454 fi
455
456 arc_files="configure.in configure ChangeLog-95"
457
458 if ( echo $* | grep keep\-arc > /dev/null ) ; then
459 for i in $arc_files ; do
460 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
461 if [ -n "${verbose}" ] ; then
462 echo Keeping arc stuff in $i
463 fi
464 fi
465 done
466 else
467 for i in $arc_files ; do
468 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
469 if [ -n "${verbose}" ] ; then
470 echo Removing traces of \"arc\" from $i...
471 fi
472 cp $i new
473 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
474 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
475 if [ -n "${verbose}" ] ; then
476 echo Caching $i in .Recover...
477 fi
478 mv $i .Recover
479 fi
480 mv new $i
481 fi
482 done
483 fi
484
485 if ( echo $* | grep keep\-gm > /dev/null ) ; then
486 for i in * ; do
487 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
488 if [ -n "${verbose}" ] ; then
489 echo Keeping gm stuff in $i
490 fi
491 fi
492 done
493 else
494 for i in * ; do
495 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
496 if [ -n "${verbose}" ] ; then
497 echo Removing traces of \"gm\" from $i...
498 fi
499 cp $i new
500 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
501 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
502 if [ -n "${verbose}" ] ; then
503 echo Caching $i in .Recover...
504 fi
505 mv $i .Recover
506 fi
507 mv new $i
508 fi
509 done
510 fi
511
512 for i in * ; do
513 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
514 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
515 fi
516 done
517
518 #
519 # End of file.
This page took 0.042501 seconds and 5 git commands to generate.