Passdown -S to linker.
[deliverable/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 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 sparclite
275 stabsread.c
276 stabsread.h
277 stack.c
278 standalone.c
279 stuff.c
280 sun3-nat.c
281 sun386-nat.c
282 symfile.c
283 symfile.h
284 symm-nat.c
285 symm-tdep.c
286 symmisc.c
287 symtab.c
288 symtab.h
289 tahoe-pinsn.c
290 target.c
291 target.h
292 terminal.h
293 testsuite
294 thread.c
295 thread.h
296 typeprint.c
297 typeprint.h
298 ultra3-nat.c
299 ultra3-xdep.c
300 umax-xdep.c
301 utils.c
302 valarith.c
303 valops.c
304 valprint.c
305 valprint.h
306 value.h
307 values.c
308 vax-pinsn.c
309 vx-share
310 xcoffexec.c
311 xcoffread.c
312 xcoffsolib.c
313 xcoffsolib.h
314 z8k-tdep.c
315
316
317 # Things which are explicitly *not* kept, for now.
318 # deblib/ - CVS won't let you blow away directories yet,
319 # so this is still around from when Stu checked
320 # it in, as part of Lucid support.
321 # energize - Part of Lucid support.
322 # energize-patches - Part of Lucid support.
323 # energize.c - Part of Lucid support.
324 # energize.h - Part of Lucid support.
325 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
326 # the FORTH console ROMs. We never got the paperwork
327 # straight, since Sun's lawyers messed with the
328 # FSF contract and RMS didn't accept the changes.
329 # Written at SunLabs.
330 # state.c - Not used at the moment, keep for reference (fnf)
331 # state.h - Not used at the moment, keep for reference (fnf)
332 # tests - Old test programs for GDB, pre-gdbtest and pre-
333 # DejaGnu.
334
335 Things-to-lose:
336
337 deblib
338 energize
339 energize-patches
340 energize.c
341 energize.h
342 remote-sa.sparc.c
343 state.c
344 state.h
345 tests
346
347 Do-last:
348
349 echo Looking for signs of \"v9\"...
350
351 # Don't try to clean directories here, as the 'mv' command will fail.
352 # Also, grep fails on NFS mounted directories.
353 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
354 for i in * ; do
355 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
356 echo Keeping v9 stuff in $i
357 fi
358 done
359 else
360 for i in * ; do
361 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
362 echo Cleaning the \"v9\" out of $i...
363 cp $i new
364 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
365 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
366 echo Caching $i in .Recover...
367 mv $i .Recover
368 fi
369 mv new $i
370 fi
371 done
372 fi
373
374 echo Removing traces of \"mpw\"...
375
376 # Don't try to clean directories here, as the 'mv' command will fail.
377 # Also, grep fails on NFS mounted directories.
378 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
379 for i in * ; do
380 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
381 echo Keeping mpw stuff in $i
382 fi
383 done
384 else
385 for i in * ; do
386 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
387 echo Removing traces of \"mpw\" out of $i...
388 cp $i new
389 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
390 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
391 echo Caching $i in .Recover...
392 mv $i .Recover
393 fi
394 mv new $i
395 fi
396 done
397 fi
398
399 # End of file.
This page took 0.037048 seconds and 4 git commands to generate.