]> Git Repo - binutils.git/blob - gdb/.Sanitize
fix copyrights, add NEWS entry
[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"
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 Makefile.in
138 NEWS
139 README
140 TODO
141 a29k-tdep.c
142 a68v-nat.c
143 abug-rom.c
144 aclocal.m4
145 acconfig.h
146 alpha-nat.c
147 alpha-tdep.c
148 altos-xdep.c
149 annotate.c
150 annotate.h
151 arm-convert.s
152 arm-tdep.c
153 arm-xdep.c
154 bcache.c
155 bcache.h
156 blockframe.c
157 breakpoint.c
158 breakpoint.h
159 buildsym.c
160 buildsym.h
161 c-exp.y
162 c-lang.c
163 c-lang.h
164 c-typeprint.c
165 c-valprint.c
166 call-cmds.h
167 ch-exp.c
168 ch-lang.c
169 ch-lang.h
170 ch-typeprint.c
171 ch-valprint.c
172 coff-solib.c
173 coff-solib.h
174 coffread.c
175 command.c
176 command.h
177 complaints.c
178 complaints.h
179 config
180 config.in
181 configure
182 configure.host
183 configure.in
184 configure.tgt
185 convex-tdep.c
186 convex-xdep.c
187 copying.awk
188 copying.c
189 core-aout.c
190 core-regset.c
191 core-sol2.c
192 corefile.c
193 corelow.c
194 cp-valprint.c
195 cpu32bug-rom.c
196 cxux-nat.c
197 dbug-rom.c
198 dbxread.c
199 dcache.c
200 dcache.h
201 defs.h
202 delta68-nat.c
203 demangle.c
204 doc
205 dpx2-nat.c
206 dsrec.c
207 dst.h
208 dstread.c
209 dwarf2read.c
210 dwarfread.c
211 elfread.c
212 environ.c
213 environ.h
214 eval.c
215 exec.c
216 exc_request.defs
217 expprint.c
218 expression.h
219 f-exp.y
220 f-lang.c
221 f-lang.h
222 f-typeprint.c
223 f-valprint.c
224 findvar.c
225 fork-child.c
226 frame.h
227 gdb_stat.h
228 gdb_string.h
229 gdb-stabs.h
230 gdb.1
231 gdb.gdb
232 gdba.el
233 gdbcmd.h
234 gdbcore.h
235 gdbserver
236 gdbthread.h
237 gdbtypes.c
238 gdbtypes.h
239 gnu-nat.c
240 gnu-nat.h
241 gnu-regex.c
242 gnu-regex.h
243 go32-xdep.c
244 gould-tdep.c
245 gould-xdep.c
246 h8300-tdep.c
247 h8500-tdep.c
248 hp300ux-nat.c
249 hppa-tdep.c
250 hppab-nat.c
251 hppah-nat.c
252 hppam3-nat.c
253 hpread.c
254 hpux-thread.c
255 i386-stub.c
256 i386-tdep.c
257 i386aix-nat.c
258 i386b-nat.c
259 i386gnu-nat.c
260 i386ly-tdep.c
261 i386m3-nat.c
262 i386mach-nat.c
263 i386v-nat.c
264 i386v4-nat.c
265 i387-tdep.c
266 i960-tdep.c
267 infcmd.c
268 inferior.h
269 inflow.c
270 infptrace.c
271 infrun.c
272 inftarg.c
273 irix4-nat.c
274 irix5-nat.c
275 isi-xdep.c
276 kdb-start.c
277 language.c
278 language.h
279 lynx-nat.c
280 m2-exp.y
281 m2-lang.c
282 m2-lang.h
283 m2-typeprint.c
284 m2-valprint.c
285 m3-nat.c
286 m68k-stub.c
287 m68k-tdep.c
288 m68knbsd-nat.c
289 m88k-nat.c
290 m88k-tdep.c
291 mac-defs.h
292 mac-xdep.c
293 mac-gdb.r
294 mac-nat.c
295 main.c
296 maint.c
297 mdebugread.c
298 mem-break.c
299 minimon.h
300 minsyms.c
301 mips-nat.c
302 mips-tdep.c
303 mipsm3-nat.c
304 mipsv4-nat.c
305 mipsread.c
306 mn10300-tdep.c
307 mon960-rom.c
308 monitor.h
309 monitor.c
310 mpw-config.in
311 mpw-make.sed
312 msg.defs
313 msg_reply.defs
314 news-xdep.c
315 nindy-share
316 nindy-tdep.c
317 nlm
318 nlmread.c
319 notify.defs
320 ns32k-tdep.c
321 ns32km3-nat.c
322 objfiles.c
323 objfiles.h
324 op50-rom.c
325 os9kread.c
326 osf-share
327 osfsolib.c
328 parse.c
329 parser-defs.h
330 partial-stab.h
331 ppcbug-rom.c
332 printcmd.c
333 process_reply.defs
334 procfs.c
335 ptx4-nat.c
336 pyr-tdep.c
337 pyr-xdep.c
338 remote-adapt.c
339 remote-array.c
340 remote-bug.c
341 remote-e7000.c
342 remote-eb.c
343 remote-es.c
344 remote-est.c
345 remote-hms.c
346 remote-mips.c
347 remote-mm.c
348 remote-nindy.c
349 remote-nrom.c
350 remote-os9k.c
351 remote-pa.c
352 remote-rdp.c
353 remote-sim.c
354 remote-sim.h
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-wiggler.c
366 remote.c
367 reply_mig_hack.awk
368 rs6000-nat.c
369 rs6000-tdep.c
370 rom68k-rom.c
371 saber.suppress
372 scm-exp.c
373 scm-lang.c
374 scm-lang.h
375 scm-tags.h
376 scm-valprint.c
377 ser-e7kpc.c
378 ser-go32.c
379 ser-mac.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 d10v_files="configure.tgt ChangeLog valops.c"
521
522 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
523         for i in $d10v_files ; 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 $d10v_files ; 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\-m32r > /dev/null ) ; then
604         for i in * ; do
605                 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
606                         if [ -n "${verbose}" ] ; then
607                                 echo Keeping m32r stuff in $i
608                         fi
609                 fi
610         done
611 else
612         for i in * ; do
613                 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
614                         if [ -n "${verbose}" ] ; then
615                                 echo Removing traces of \"m32r\" from $i...
616                         fi
617                         cp $i new
618                         sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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 for i in * ; do
631         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
632                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
633         fi
634 done
635
636 #
637 # End of file.
This page took 0.061579 seconds and 4 git commands to generate.