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