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