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