* Makefile.in: Remove -O from CXXFLAGS for consistency with CFLAGS,
[binutils-gdb.git] / gdb / .Sanitize
1 # .Sanitize for devo/gdb.
2
3 # Each directory to survive it's 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
15
16 Do-first:
17
18 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
19 keep_these_too="sp64-tdep.c"
20 else
21 lose_these_too="sp64-tdep.c"
22 fi
23
24 # All files listed between the "Things-to-keep:" line and the
25 # "Files-to-sed:" line will be kept. All other files will be removed.
26 # Directories listed in this section will have their own Sanitize
27 # called. Directories not listed will be removed in their entirety
28 # with rm -rf.
29
30 Things-to-keep:
31
32 .gdbinit
33 29k-share
34 COPYING
35 ChangeLog
36 ChangeLog-3.x
37 ChangeLog-9091
38 ChangeLog-92
39 Makefile.in
40 NEWS
41 Projects
42 README
43 TODO
44 a29k-pinsn.c
45 a29k-tdep.c
46 a68v-nat.c
47 alpha-nat.c
48 alpha-tdep.c
49 altos-xdep.c
50 arm-convert.s
51 arm-pinsn.c
52 arm-tdep.c
53 arm-xdep.c
54 blockframe.c
55 breakpoint.c
56 breakpoint.h
57 buildsym.c
58 buildsym.h
59 c-exp.y
60 c-lang.c
61 c-lang.h
62 c-typeprint.c
63 c-valprint.c
64 call-cmds.h
65 ch-exp.y
66 ch-lang.c
67 ch-lang.h
68 ch-typeprint.c
69 ch-valprint.c
70 coff-solib.c
71 coff-solib.h
72 coffread.c
73 command.c
74 command.h
75 complaints.c
76 complaints.h
77 config
78 configure.in
79 convex-pinsn.c
80 convex-tdep.c
81 convex-xdep.c
82 copying.awk
83 copying.c
84 core-svr4.c
85 core.c
86 coredep.c
87 corelow.c
88 cp-valprint.c
89 dbxread.c
90 dcache.c
91 dcache.h
92 defs.h
93 delta68-nat.c
94 demangle.c
95 doc
96 dpx2-nat.c
97 dwarfread.c
98 elfread.c
99 environ.c
100 environ.h
101 eval.c
102 exec.c
103 expprint.c
104 expression.h
105 findvar.c
106 fork-child.c
107 frame.h
108 gcc.patch
109 gdb-stabs.h
110 gdb.1
111 gdbcmd.h
112 gdbcore.h
113 gdbserver
114 gdbtypes.c
115 gdbtypes.h
116 go32-xdep.c
117 gould-pinsn.c
118 gould-xdep.c
119 h8300-tdep.c
120 h8500-tdep.c
121 hp300ux-nat.c
122 hppa-pinsn.c
123 hppa-tdep.c
124 hppab-nat.c
125 hppah-nat.c
126 i386-nlmstub.c
127 i386-pinsn.c
128 i386-stub.c
129 i386-tdep.c
130 i386aix-nat.c
131 i386b-nat.c
132 i386ly-tdep.c
133 i386lynx-nat.c
134 i386m3-nat.c
135 i386mach-nat.c
136 i386v-nat.c
137 i386v4-nat.c
138 i387-tdep.c
139 i960-pinsn.c
140 i960-tdep.c
141 infcmd.c
142 inferior.h
143 inflow.c
144 infptrace.c
145 infrun.c
146 inftarg.c
147 irix4-nat.c
148 isi-xdep.c
149 kdb-start.c
150 language.c
151 language.h
152 m2-exp.y
153 m2-lang.c
154 m2-lang.h
155 m2-typeprint.c
156 m2-valprint.c
157 m3-nat.c
158 m68k-pinsn.c
159 m68k-stub.c
160 m68k-tdep.c
161 m88k-nat.c
162 m88k-pinsn.c
163 m88k-tdep.c
164 main.c
165 maint.c
166 mem-break.c
167 minimon.h
168 minsyms.c
169 mips-nat.c
170 mips-pinsn.c
171 mips-tdep.c
172 mipsm3-nat.c
173 mipsread.c
174 monitor.h
175 munch
176 news-xdep.c
177 nindy-share
178 nindy-tdep.c
179 nlmread.c
180 ns32k-opcode.h
181 ns32k-pinsn.c
182 ns32km3-nat.c
183 objfiles.c
184 objfiles.h
185 osfsolib.c
186 paread.c
187 parse.c
188 parser-defs.h
189 partial-stab.h
190 printcmd.c
191 procfs.c
192 putenv.c
193 pyr-pinsn.c
194 pyr-tdep.c
195 pyr-xdep.c
196 regex.c
197 regex.h
198 rem-multi.shar
199 remote-adapt.c
200 remote-bug.c
201 remote-eb.c
202 remote-es.c
203 remote-hms.c
204 remote-mips.c
205 remote-mm.c
206 remote-mon.c
207 remote-nindy.c
208 remote-sim.c
209 remote-sim.h
210 remote-st.c
211 remote-udi.c
212 remote-utils.c
213 remote-utils.h
214 remote-vx.c
215 remote-z8k.c
216 remote.c
217 rs6000-nat.c
218 rs6000-pinsn.c
219 rs6000-tdep.c
220 saber.suppress
221 ser-go32.c
222 ser-tcp.c
223 ser-unix.c
224 serial.c
225 serial.h
226 sh-tdep.c
227 signals.h
228 solib.c
229 solib.h
230 source.c
231 sparc-nat.c
232 sparc-pinsn.c
233 sparc-stub.c
234 sparc-tdep.c
235 sparclite
236 stabsread.c
237 stabsread.h
238 stack.c
239 standalone.c
240 stuff.c
241 sun3-nat.c
242 sun386-nat.c
243 symfile.c
244 symfile.h
245 symm-nat.c
246 symm-tdep.c
247 symmisc.c
248 symtab.c
249 symtab.h
250 tahoe-pinsn.c
251 target.c
252 target.h
253 terminal.h
254 testsuite
255 thread.c
256 thread.h
257 typeprint.c
258 typeprint.h
259 ultra3-nat.c
260 ultra3-xdep.c
261 umax-xdep.c
262 utils.c
263 valarith.c
264 valops.c
265 valprint.c
266 valprint.h
267 value.h
268 values.c
269 vax-pinsn.c
270 vx-share
271 xcoffexec.c
272 xcoffread.c
273 xcoffsolib.c
274 xcoffsolib.h
275 z8k-tdep.c
276
277
278 # Things which are explicitly *not* kept, for now.
279 # deblib/ - CVS won't let you blow away directories yet,
280 # so this is still around from when Stu checked
281 # it in, as part of Lucid support.
282 # energize - Part of Lucid support.
283 # energize-patches - Part of Lucid support.
284 # energize.c - Part of Lucid support.
285 # energize.h - Part of Lucid support.
286 # infrun.hacked.c - An old version of infrun.c that had some
287 # wait_for_inferior improvements by gnu,
288 # which were never fully debugged.
289 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
290 # the FORTH console ROMs. We never got the paperwork
291 # straight, since Sun's lawyers messed with the
292 # FSF contract and RMS didn't accept the changes.
293 # Written at SunLabs.
294 # state.c - Not used at the moment, keep for reference (fnf)
295 # state.h - Not used at the moment, keep for reference (fnf)
296 # tests - Old test programs for GDB, pre-gdbtest and pre-
297 # DejaGnu.
298
299 Things-to-lose:
300
301 deblib
302 energize
303 energize-patches
304 energize.c
305 energize.h
306 infrun.hacked.c
307 remote-sa.sparc.c
308 state.c
309 state.h
310 tests
311
312 Do-last:
313
314 echo Looking for signs of \"v9\"...
315
316 # Don't try to clean directories here, as the 'mv' command will fail.
317 # Also, grep fails on NFS mounted directories.
318 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
319 for i in * ; do
320 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
321 echo Keeping v9 stuff in $i
322 fi
323 done
324 else
325 for i in * ; do
326 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
327 echo Cleaning the \"v9\" out of $i...
328 cp $i new
329 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
330 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
331 echo Caching $i in .Recover...
332 mv $i .Recover
333 fi
334 mv new $i
335 fi
336 done
337 fi
338
339 # End of file.