* expression.h (enum exp_code): Added OP_NAME.
[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 scm-exp.c
290 scm-lang.c
291 scm-lang.h
292 scm-tags.h
293 scm-valprint.c
294 ser-e7kpc.c
295 ser-go32.c
296 ser-mac.c
297 ser-tcp.c
298 ser-unix.c
299 serial.c
300 serial.h
301 sh-tdep.c
302 signals.h
303 solib.c
304 solib.h
305 somread.c
306 somsolib.c
307 somsolib.h
308 source.c
309 sparc-nat.c
310 sparc-stub.c
311 sparc-tdep.c
312 sparcl-stub.c
313 sparcl-tdep.c
314 stabsread.c
315 stabsread.h
316 stack.c
317 standalone.c
318 stop-gdb.c
319 stuff.c
320 sun3-nat.c
321 sun386-nat.c
322 symfile.c
323 symfile.h
324 symm-nat.c
325 symm-tdep.c
326 symmisc.c
327 symtab.c
328 symtab.h
329 tahoe-tdep.c
330 target.c
331 target.h
332 terminal.h
333 testsuite
334 thread.c
335 thread.h
336 top.c
337 top.h
338 typeprint.c
339 typeprint.h
340 ultra3-nat.c
341 ultra3-xdep.c
342 umax-xdep.c
343 utils.c
344 valarith.c
345 valops.c
346 valprint.c
347 valprint.h
348 value.h
349 values.c
350 vax-tdep.c
351 vx-share
352 w65-tdep.c
353 w89k-rom.c
354 xcoffread.c
355 xcoffsolib.c
356 xcoffsolib.h
357 xmodem.c
358 xmodem.h
359 z8k-tdep.c
360
361 # Things which are explicitly *not* kept, for now.
362
363 Things-to-lose:
364
365 ser-go32-para.c
366 HOW_TO_RELEASE
367
368 Do-last:
369
370 # Don't try to clean directories here, as the 'mv' command will fail.
371 # Also, grep fails on NFS mounted directories.
372 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
373 echo Catering to RMS by removing traces of \"gdbtk\"...
374 for i in * ; do
375 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
376 echo Removing traces of \"gdbtk\" out of $i...
377 cp $i new
378 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
379 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
380 echo Caching $i in .Recover...
381 mv $i .Recover
382 fi
383 mv new $i
384 fi
385 done
386 else
387 echo Leaving \"gdbtk\" in the sources...
388 for i in * ; do
389 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
390 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
391 cp $i new
392 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
393 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
394 echo Caching $i in .Recover...
395 mv $i .Recover
396 fi
397 mv new $i
398 fi
399 done
400 fi
401
402 r16_files="configure.in configure"
403
404 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
405 for i in $r16_files ; do
406 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
407 if [ -n "${verbose}" ] ; then
408 echo Keeping r16 stuff in $i
409 fi
410 fi
411 done
412 else
413 for i in $r16_files ; do
414 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
415 if [ -n "${verbose}" ] ; then
416 echo Removing traces of \"r16\" from $i...
417 fi
418 cp $i new
419 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
420 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
421 if [ -n "${verbose}" ] ; then
422 echo Caching $i in .Recover...
423 fi
424 mv $i .Recover
425 fi
426 mv new $i
427 fi
428 done
429 fi
430
431 arc_files="configure.in configure ChangeLog"
432
433 if ( echo $* | grep keep\-arc > /dev/null ) ; then
434 for i in $arc_files ; do
435 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
436 if [ -n "${verbose}" ] ; then
437 echo Keeping arc stuff in $i
438 fi
439 fi
440 done
441 else
442 for i in $arc_files ; do
443 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
444 if [ -n "${verbose}" ] ; then
445 echo Removing traces of \"arc\" from $i...
446 fi
447 cp $i new
448 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
449 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
450 if [ -n "${verbose}" ] ; then
451 echo Caching $i in .Recover...
452 fi
453 mv $i .Recover
454 fi
455 mv new $i
456 fi
457 done
458 fi
459
460 for i in * ; do
461 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
462 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
463 fi
464 done
465
466 #
467 # End of file.