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