Changes from Andrew
[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 gdbtk_files="README.GDBTK gdbtk.c 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 # All files listed between the "Things-to-keep:" line and the
78 # "Files-to-sed:" line will be kept. All other files will be removed.
79 # Directories listed in this section will have their own Sanitize
80 # called. Directories not listed will be removed in their entirety
81 # with rm -rf.
82
83 Things-to-keep:
84
85 .gdbinit
86 29k-share
87 COPYING
88 ChangeLog
89 ChangeLog-3.x
90 ChangeLog-9091
91 ChangeLog-92
92 ChangeLog-93
93 ChangeLog-94
94 Makefile.in
95 NEWS
96 README
97 TODO
98 a29k-tdep.c
99 a68v-nat.c
100 aclocal.m4
101 alpha-nat.c
102 alpha-tdep.c
103 altos-xdep.c
104 annotate.c
105 annotate.h
106 arm-convert.s
107 arm-tdep.c
108 arm-xdep.c
109 blockframe.c
110 breakpoint.c
111 breakpoint.h
112 buildsym.c
113 buildsym.h
114 callback.c
115 callback.h
116 c-exp.y
117 c-lang.c
118 c-lang.h
119 c-typeprint.c
120 c-valprint.c
121 call-cmds.h
122 ch-exp.c
123 ch-lang.c
124 ch-lang.h
125 ch-typeprint.c
126 ch-valprint.c
127 coff-solib.c
128 coff-solib.h
129 coffread.c
130 command.c
131 command.h
132 complaints.c
133 complaints.h
134 config
135 configure
136 configure.in
137 convex-tdep.c
138 convex-xdep.c
139 copying.awk
140 copying.c
141 core-sol2.c
142 core-svr4.c
143 corefile.c
144 coredep.c
145 corelow.c
146 cp-valprint.c
147 cpu32bug-rom.c
148 cxux-nat.c
149 dbxread.c
150 dcache.c
151 dcache.h
152 defs.h
153 delta68-nat.c
154 demangle.c
155 doc
156 dpx2-nat.c
157 dst.h
158 dstread.c
159 dwarfread.c
160 elfread.c
161 environ.c
162 environ.h
163 eval.c
164 exec.c
165 expprint.c
166 expression.h
167 f-exp.y
168 f-lang.c
169 f-lang.h
170 f-typeprint.c
171 f-valprint.c
172 findvar.c
173 fork-child.c
174 frame.h
175 gdb_stat.h
176 gdb_string.h
177 gdb-stabs.h
178 gdb.1
179 gdb.gdb
180 gdba.el
181 gdbcmd.h
182 gdbcore.h
183 gdbserver
184 gdbtypes.c
185 gdbtypes.h
186 gnu-regex.c
187 gnu-regex.h
188 go32-xdep.c
189 gould-tdep.c
190 gould-xdep.c
191 h8300-tdep.c
192 h8500-tdep.c
193 hp300ux-nat.c
194 hppa-tdep.c
195 hppab-nat.c
196 hppah-nat.c
197 hppam3-nat.c
198 hpread.c
199 i386-stub.c
200 i386-tdep.c
201 i386aix-nat.c
202 i386b-nat.c
203 i386ly-tdep.c
204 i386m3-nat.c
205 i386mach-nat.c
206 i386v-nat.c
207 i386v4-nat.c
208 i387-tdep.c
209 i960-tdep.c
210 infcmd.c
211 inferior.h
212 inflow.c
213 infptrace.c
214 infrun.c
215 inftarg.c
216 irix4-nat.c
217 irix5-nat.c
218 isi-xdep.c
219 kdb-start.c
220 language.c
221 language.h
222 lynx-nat.c
223 m2-exp.y
224 m2-lang.c
225 m2-lang.h
226 m2-typeprint.c
227 m2-valprint.c
228 m3-nat.c
229 m68k-stub.c
230 m68k-tdep.c
231 m88k-nat.c
232 m88k-tdep.c
233 mac-defs.h
234 mac-xdep.c
235 mac-gdb.r
236 mac-nat.c
237 main.c
238 maint.c
239 mdebugread.c
240 mem-break.c
241 minimon.h
242 minsyms.c
243 mips-nat.c
244 mips-tdep.c
245 mipsm3-nat.c
246 mipsv4-nat.c
247 mipsread.c
248 monitor.h
249 monitor.c
250 mpw-config.in
251 mpw-make.sed
252 news-xdep.c
253 nindy-share
254 nindy-tdep.c
255 nlm
256 nlmread.c
257 ns32k-tdep.c
258 ns32km3-nat.c
259 objfiles.c
260 objfiles.h
261 op50-rom.c
262 os9kread.c
263 osfsolib.c
264 parse.c
265 parser-defs.h
266 partial-stab.h
267 ppcbug-rom.c
268 printcmd.c
269 procfs.c
270 ptx4-nat.c
271 pyr-tdep.c
272 pyr-xdep.c
273 remote-adapt.c
274 remote-array.c
275 remote-bug.c
276 remote-e7000.c
277 remote-eb.c
278 remote-es.c
279 remote-est.c
280 remote-hms.c
281 remote-mips.c
282 remote-mm.c
283 remote-nindy.c
284 remote-nrom.c
285 remote-os9k.c
286 remote-pa.c
287 remote-rdp.c
288 remote-sim.c
289 remote-sim.h
290 remote-st.c
291 remote-udi.c
292 remote-utils.c
293 remote-utils.h
294 remote-vx.c
295 remote-vx29k.c
296 remote-vx68.c
297 remote-vx960.c
298 remote-vxmips.c
299 remote-vxsparc.c
300 remote.c
301 rs6000-nat.c
302 rs6000-tdep.c
303 rom68k-rom.c
304 saber.suppress
305 scm-exp.c
306 scm-lang.c
307 scm-lang.h
308 scm-tags.h
309 scm-valprint.c
310 ser-e7kpc.c
311 ser-go32.c
312 ser-mac.c
313 ser-tcp.c
314 ser-unix.c
315 serial.c
316 serial.h
317 sh-tdep.c
318 sh3-rom.c
319 signals.h
320 solib.c
321 solib.h
322 somread.c
323 somsolib.c
324 somsolib.h
325 source.c
326 sparc-nat.c
327 sparc-stub.c
328 sparc-tdep.c
329 sparcl-stub.c
330 sparcl-tdep.c
331 srec.c
332 srec.h
333 stabsread.c
334 stabsread.h
335 stack.c
336 standalone.c
337 stop-gdb.c
338 stuff.c
339 sun3-nat.c
340 sun386-nat.c
341 symfile.c
342 symfile.h
343 symm-nat.c
344 symm-tdep.c
345 symmisc.c
346 symtab.c
347 symtab.h
348 tahoe-tdep.c
349 target.c
350 target.h
351 terminal.h
352 testsuite
353 thread.c
354 thread.h
355 top.c
356 top.h
357 typeprint.c
358 typeprint.h
359 ultra3-nat.c
360 ultra3-xdep.c
361 umax-xdep.c
362 utils.c
363 valarith.c
364 valops.c
365 valprint.c
366 valprint.h
367 value.h
368 values.c
369 vax-tdep.c
370 vx-share
371 w65-tdep.c
372 w89k-rom.c
373 win32-nat.c
374 xcoffread.c
375 xcoffsolib.c
376 xcoffsolib.h
377 xmodem.c
378 xmodem.h
379 z8k-tdep.c
380
381 # Things which are explicitly *not* kept, for now.
382
383 Things-to-lose:
384
385 ser-go32-para.c
386 HOW_TO_RELEASE
387
388 Do-last:
389
390 # Don't try to clean directories here, as the 'mv' command will fail.
391 # Also, grep fails on NFS mounted directories.
392 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
393 echo Catering to RMS by removing traces of \"gdbtk\"...
394 for i in * ; do
395 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
396 echo Removing traces of \"gdbtk\" out of $i...
397 cp $i new
398 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
399 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
400 echo Caching $i in .Recover...
401 mv $i .Recover
402 fi
403 mv new $i
404 fi
405 done
406 else
407 echo Leaving \"gdbtk\" in the sources...
408 for i in * ; do
409 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
410 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
411 cp $i new
412 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
413 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
414 echo Caching $i in .Recover...
415 mv $i .Recover
416 fi
417 mv new $i
418 fi
419 done
420 fi
421
422 r16_files="configure.in configure"
423
424 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
425 for i in $r16_files ; do
426 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
427 if [ -n "${verbose}" ] ; then
428 echo Keeping r16 stuff in $i
429 fi
430 fi
431 done
432 else
433 for i in $r16_files ; do
434 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
435 if [ -n "${verbose}" ] ; then
436 echo Removing traces of \"r16\" from $i...
437 fi
438 cp $i new
439 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
440 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
441 if [ -n "${verbose}" ] ; then
442 echo Caching $i in .Recover...
443 fi
444 mv $i .Recover
445 fi
446 mv new $i
447 fi
448 done
449 fi
450
451 arc_files="configure.in configure ChangeLog"
452
453 if ( echo $* | grep keep\-arc > /dev/null ) ; then
454 for i in $arc_files ; do
455 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
456 if [ -n "${verbose}" ] ; then
457 echo Keeping arc stuff in $i
458 fi
459 fi
460 done
461 else
462 for i in $arc_files ; do
463 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
464 if [ -n "${verbose}" ] ; then
465 echo Removing traces of \"arc\" from $i...
466 fi
467 cp $i new
468 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
469 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
470 if [ -n "${verbose}" ] ; then
471 echo Caching $i in .Recover...
472 fi
473 mv $i .Recover
474 fi
475 mv new $i
476 fi
477 done
478 fi
479
480 sh3e_files="ChangeLog"
481
482 if ( echo $* | grep keep\-sh3e > /dev/null ) ; then
483 for i in $sh3e_files ; do
484 if test ! -d $i && (grep sanitize-sh3e $i > /dev/null) ; then
485 if [ -n "${verbose}" ] ; then
486 echo Keeping sh3e stuff in $i
487 fi
488 fi
489 done
490 else
491 for i in $sh3e_files ; do
492 if test ! -d $i && (grep sanitize-sh3e $i > /dev/null) ; then
493 if [ -n "${verbose}" ] ; then
494 echo Removing traces of \"sh3e\" from $i...
495 fi
496 cp $i new
497 sed '/start\-sanitize\-sh3e/,/end-\sanitize\-sh3e/d' < $i > new
498 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
499 if [ -n "${verbose}" ] ; then
500 echo Caching $i in .Recover...
501 fi
502 mv $i .Recover
503 fi
504 mv new $i
505 fi
506 done
507 fi
508
509 if ( echo $* | grep keep\-gm > /dev/null ) ; then
510 for i in * ; do
511 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
512 if [ -n "${verbose}" ] ; then
513 echo Keeping gm stuff in $i
514 fi
515 fi
516 done
517 else
518 for i in * ; do
519 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
520 if [ -n "${verbose}" ] ; then
521 echo Removing traces of \"gm\" from $i...
522 fi
523 cp $i new
524 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
525 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
526 if [ -n "${verbose}" ] ; then
527 echo Caching $i in .Recover...
528 fi
529 mv $i .Recover
530 fi
531 mv new $i
532 fi
533 done
534 fi
535
536 for i in * ; do
537 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
538 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
539 fi
540 done
541
542 #
543 # End of file.
This page took 0.039696 seconds and 4 git commands to generate.