* test-build.mk (HOLES): Add "xargs" for gdb.
[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 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="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 .gdbinit
114 29k-share
115 COPYING
116 ChangeLog
117 ChangeLog-3.x
118 ChangeLog-9091
119 ChangeLog-92
120 ChangeLog-93
121 ChangeLog-94
122 ChangeLog-95
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 callback.c
148 callback.h
149 c-exp.y
150 c-lang.c
151 c-lang.h
152 c-typeprint.c
153 c-valprint.c
154 call-cmds.h
155 ch-exp.c
156 ch-lang.c
157 ch-lang.h
158 ch-typeprint.c
159 ch-valprint.c
160 coff-solib.c
161 coff-solib.h
162 coffread.c
163 command.c
164 command.h
165 complaints.c
166 complaints.h
167 config
168 config.in
169 configure
170 configure.in
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 dbug-rom.c
184 dbxread.c
185 dcache.c
186 dcache.h
187 defs.h
188 delta68-nat.c
189 demangle.c
190 doc
191 dpx2-nat.c
192 dsrec.c
193 dst.h
194 dstread.c
195 dwarf2read.c
196 dwarfread.c
197 elfread.c
198 environ.c
199 environ.h
200 eval.c
201 exec.c
202 exc_request.defs
203 expprint.c
204 expression.h
205 f-exp.y
206 f-lang.c
207 f-lang.h
208 f-typeprint.c
209 f-valprint.c
210 findvar.c
211 fork-child.c
212 frame.h
213 gdb_stat.h
214 gdb_string.h
215 gdb-stabs.h
216 gdb.1
217 gdb.gdb
218 gdba.el
219 gdbcmd.h
220 gdbcore.h
221 gdbserver
222 gdbthread.h
223 gdbtypes.c
224 gdbtypes.h
225 gnu-nat.c
226 gnu-nat.h
227 gnu-regex.c
228 gnu-regex.h
229 go32-xdep.c
230 gould-tdep.c
231 gould-xdep.c
232 h8300-tdep.c
233 h8500-tdep.c
234 hp300ux-nat.c
235 hppa-tdep.c
236 hppab-nat.c
237 hppah-nat.c
238 hppam3-nat.c
239 hpread.c
240 hpux-thread.c
241 i386-stub.c
242 i386-tdep.c
243 i386aix-nat.c
244 i386b-nat.c
245 i386gnu-nat.c
246 i386ly-tdep.c
247 i386m3-nat.c
248 i386mach-nat.c
249 i386v-nat.c
250 i386v4-nat.c
251 i387-tdep.c
252 i960-tdep.c
253 infcmd.c
254 inferior.h
255 inflow.c
256 infptrace.c
257 infrun.c
258 inftarg.c
259 irix4-nat.c
260 irix5-nat.c
261 isi-xdep.c
262 kdb-start.c
263 language.c
264 language.h
265 lynx-nat.c
266 m2-exp.y
267 m2-lang.c
268 m2-lang.h
269 m2-typeprint.c
270 m2-valprint.c
271 m3-nat.c
272 m68k-stub.c
273 m68k-tdep.c
274 m68knbsd-nat.c
275 m88k-nat.c
276 m88k-tdep.c
277 mac-defs.h
278 mac-xdep.c
279 mac-gdb.r
280 mac-nat.c
281 main.c
282 maint.c
283 mdebugread.c
284 mem-break.c
285 minimon.h
286 minsyms.c
287 mips-nat.c
288 mips-tdep.c
289 mipsm3-nat.c
290 mipsv4-nat.c
291 mipsread.c
292 mon960-rom.c
293 monitor.h
294 monitor.c
295 mpw-config.in
296 mpw-make.sed
297 msg.defs
298 msg_reply.defs
299 news-xdep.c
300 nindy-share
301 nindy-tdep.c
302 nlm
303 nlmread.c
304 notify.defs
305 ns32k-tdep.c
306 ns32km3-nat.c
307 objfiles.c
308 objfiles.h
309 op50-rom.c
310 os9kread.c
311 osf-share
312 osfsolib.c
313 parse.c
314 parser-defs.h
315 partial-stab.h
316 ppcbug-rom.c
317 printcmd.c
318 process_reply.defs
319 procfs.c
320 ptx4-nat.c
321 pyr-tdep.c
322 pyr-xdep.c
323 remote-adapt.c
324 remote-array.c
325 remote-bug.c
326 remote-e7000.c
327 remote-eb.c
328 remote-es.c
329 remote-est.c
330 remote-hms.c
331 remote-mips.c
332 remote-mm.c
333 remote-nindy.c
334 remote-nrom.c
335 remote-os9k.c
336 remote-pa.c
337 remote-rdp.c
338 remote-sim.c
339 remote-sim.h
340 remote-st.c
341 remote-udi.c
342 remote-utils.c
343 remote-utils.h
344 remote-vx.c
345 remote-vx29k.c
346 remote-vx68.c
347 remote-vx960.c
348 remote-vxmips.c
349 remote-vxsparc.c
350 remote-wiggler.c
351 remote.c
352 reply_mig_hack.awk
353 rs6000-nat.c
354 rs6000-tdep.c
355 rom68k-rom.c
356 saber.suppress
357 scm-exp.c
358 scm-lang.c
359 scm-lang.h
360 scm-tags.h
361 scm-valprint.c
362 ser-e7kpc.c
363 ser-go32.c
364 ser-mac.c
365 ser-tcp.c
366 ser-unix.c
367 serial.c
368 serial.h
369 sh-stub.c
370 sh-tdep.c
371 sh3-rom.c
372 signals.h
373 sol-thread.c
374 solib.c
375 solib.h
376 somread.c
377 somsolib.c
378 somsolib.h
379 source.c
380 sparc-nat.c
381 sparc-stub.c
382 sparc-tdep.c
383 sparcl-stub.c
384 sparcl-tdep.c
385 sparclet-rom.c
386 srec.h
387 stabsread.c
388 stabsread.h
389 stack.c
390 standalone.c
391 stop-gdb.c
392 stuff.c
393 sun3-nat.c
394 sun386-nat.c
395 symfile.c
396 symfile.h
397 symm-nat.c
398 symm-tdep.c
399 symmisc.c
400 symtab.c
401 symtab.h
402 tahoe-tdep.c
403 target.c
404 target.h
405 terminal.h
406 testsuite
407 thread.c
408 top.c
409 top.h
410 typeprint.c
411 typeprint.h
412 ultra3-nat.c
413 ultra3-xdep.c
414 umax-xdep.c
415 utils.c
416 valarith.c
417 valops.c
418 valprint.c
419 valprint.h
420 value.h
421 values.c
422 vax-tdep.c
423 vx-share
424 w65-tdep.c
425 w89k-rom.c
426 win32-nat.c
427 xcoffread.c
428 xcoffsolib.c
429 xcoffsolib.h
430 xmodem.c
431 xmodem.h
432 z8k-tdep.c
433
434 # Things which are explicitly *not* kept, for now.
435
436 Things-to-lose:
437
438 ser-go32-para.c
439 HOW_TO_RELEASE
440
441 Do-last:
442
443 # Don't try to clean directories here, as the 'mv' command will fail.
444 # Also, grep fails on NFS mounted directories.
445 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
446 echo Catering to RMS by removing traces of \"gdbtk\"...
447 for i in * ; do
448 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
449 echo Removing traces of \"gdbtk\" out of $i...
450 cp $i new
451 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
452 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
453 echo Caching $i in .Recover...
454 mv $i .Recover
455 fi
456 mv new $i
457 fi
458 done
459 else
460 echo Leaving \"gdbtk\" in the sources...
461 for i in * ; do
462 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
463 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
464 cp $i new
465 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
466 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
467 echo Caching $i in .Recover...
468 mv $i .Recover
469 fi
470 mv new $i
471 fi
472 done
473 fi
474
475 arc_files="configure.in configure ChangeLog-95"
476
477 if ( echo $* | grep keep\-arc > /dev/null ) ; then
478 for i in $arc_files ; do
479 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
480 if [ -n "${verbose}" ] ; then
481 echo Keeping arc stuff in $i
482 fi
483 fi
484 done
485 else
486 for i in $arc_files ; do
487 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
488 if [ -n "${verbose}" ] ; then
489 echo Removing traces of \"arc\" from $i...
490 fi
491 cp $i new
492 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
493 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
494 if [ -n "${verbose}" ] ; then
495 echo Caching $i in .Recover...
496 fi
497 mv $i .Recover
498 fi
499 mv new $i
500 fi
501 done
502 fi
503
504 d10v_files="configure.in configure ChangeLog"
505
506 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
507 for i in $d10v_files ; do
508 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
509 if [ -n "${verbose}" ] ; then
510 echo Keeping d10v stuff in $i
511 fi
512 fi
513 done
514 else
515 for i in $d10v_files ; do
516 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
517 if [ -n "${verbose}" ] ; then
518 echo Removing traces of \"d10v\" from $i...
519 fi
520 cp $i new
521 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
522 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
523 if [ -n "${verbose}" ] ; then
524 echo Caching $i in .Recover...
525 fi
526 mv $i .Recover
527 fi
528 mv new $i
529 fi
530 done
531 fi
532
533 if ( echo $* | grep keep\-gm > /dev/null ) ; then
534 for i in * ; do
535 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
536 if [ -n "${verbose}" ] ; then
537 echo Keeping gm stuff in $i
538 fi
539 fi
540 done
541 else
542 for i in * ; do
543 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
544 if [ -n "${verbose}" ] ; then
545 echo Removing traces of \"gm\" from $i...
546 fi
547 cp $i new
548 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
549 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
550 if [ -n "${verbose}" ] ; then
551 echo Caching $i in .Recover...
552 fi
553 mv $i .Recover
554 fi
555 mv new $i
556 fi
557 done
558 fi
559
560 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
561 for i in * ; do
562 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
563 if [ -n "${verbose}" ] ; then
564 echo Keeping v850 stuff in $i
565 fi
566 fi
567 done
568 else
569 for i in * ; do
570 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
571 if [ -n "${verbose}" ] ; then
572 echo Removing traces of \"v850\" from $i...
573 fi
574 cp $i new
575 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
576 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
577 if [ -n "${verbose}" ] ; then
578 echo Caching $i in .Recover...
579 fi
580 mv $i .Recover
581 fi
582 mv new $i
583 fi
584 done
585 fi
586
587 for i in * ; do
588 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
589 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
590 fi
591 done
592
593 #
594 # End of file.
This page took 0.041754 seconds and 4 git commands to generate.