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