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