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