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