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