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