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