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