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