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