Comings and goings of Mac-related files
[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 arc_files="arc-tdep.c remote-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${arc_files}
24 fi
25 else
26 lose_these_too="${arc_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${arc_files}
29 fi
30 fi
31
32 gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl"
33
34 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
35 lose_these_too="${gdbtk_files} ${lose_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Deleting ${gdbtk_files}
38 fi
39 else
40 keep_these_too="${gdbtk_files} ${keep_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Keeping ${gdbtk_files}
43 fi
44 fi
45
46 # WinGDB files are not really ready to be part of FSF releases, but
47 # keep them for progressives and such.
48
49 mswin_files="mswin"
50
51 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
52 lose_these_too="${mswin_files} ${lose_these_too}"
53 if [ -n "${verbose}" ] ; then
54 echo Deleting ${mswin_files}
55 fi
56 else
57 keep_these_too="${mswin_files} ${keep_these_too}"
58 if [ -n "${verbose}" ] ; then
59 echo Keeping ${mswin_files}
60 fi
61 fi
62
63 # All files listed between the "Things-to-keep:" line and the
64 # "Files-to-sed:" line will be kept. All other files will be removed.
65 # Directories listed in this section will have their own Sanitize
66 # called. Directories not listed will be removed in their entirety
67 # with rm -rf.
68
69 Things-to-keep:
70
71 .gdbinit
72 29k-share
73 COPYING
74 ChangeLog
75 ChangeLog-3.x
76 ChangeLog-9091
77 ChangeLog-92
78 ChangeLog-93
79 ChangeLog-94
80 Makefile.in
81 NEWS
82 README
83 TODO
84 a29k-tdep.c
85 a68v-nat.c
86 aclocal.m4
87 alpha-nat.c
88 alpha-tdep.c
89 altos-xdep.c
90 annotate.c
91 annotate.h
92 arm-convert.s
93 arm-tdep.c
94 arm-xdep.c
95 blockframe.c
96 breakpoint.c
97 breakpoint.h
98 buildsym.c
99 buildsym.h
100 callback.c
101 callback.h
102 c-exp.y
103 c-lang.c
104 c-lang.h
105 c-typeprint.c
106 c-valprint.c
107 call-cmds.h
108 ch-exp.y
109 ch-lang.c
110 ch-lang.h
111 ch-typeprint.c
112 ch-valprint.c
113 coff-solib.c
114 coff-solib.h
115 coffread.c
116 command.c
117 command.h
118 complaints.c
119 complaints.h
120 config
121 configure
122 configure.in
123 convex-tdep.c
124 convex-xdep.c
125 copying.awk
126 copying.c
127 core-sol2.c
128 core-svr4.c
129 core.c
130 coredep.c
131 corelow.c
132 cp-valprint.c
133 cpu32bug-rom.c
134 cxux-nat.c
135 dbxread.c
136 dcache.c
137 dcache.h
138 defs.h
139 delta68-nat.c
140 demangle.c
141 doc
142 dpx2-nat.c
143 dst.h
144 dstread.c
145 dwarfread.c
146 elfread.c
147 environ.c
148 environ.h
149 eval.c
150 exec.c
151 expprint.c
152 expression.h
153 f-exp.y
154 f-lang.c
155 f-lang.h
156 f-typeprint.c
157 f-valprint.c
158 findvar.c
159 fork-child.c
160 frame.h
161 gdb_stat.h
162 gdb_string.h
163 gdb-stabs.h
164 gdb.1
165 gdb.gdb
166 gdba.el
167 gdbcmd.h
168 gdbcore.h
169 gdbserver
170 gdbtypes.c
171 gdbtypes.h
172 go32-xdep.c
173 gould-tdep.c
174 gould-xdep.c
175 h8300-tdep.c
176 h8500-tdep.c
177 hp300ux-nat.c
178 hppa-tdep.c
179 hppab-nat.c
180 hppah-nat.c
181 hppam3-nat.c
182 hpread.c
183 i386-stub.c
184 i386-tdep.c
185 i386aix-nat.c
186 i386b-nat.c
187 i386ly-tdep.c
188 i386m3-nat.c
189 i386mach-nat.c
190 i386v-nat.c
191 i386v4-nat.c
192 i387-tdep.c
193 i960-tdep.c
194 infcmd.c
195 inferior.h
196 inflow.c
197 infptrace.c
198 infrun.c
199 inftarg.c
200 irix4-nat.c
201 irix5-nat.c
202 isi-xdep.c
203 kdb-start.c
204 language.c
205 language.h
206 lynx-nat.c
207 m2-exp.y
208 m2-lang.c
209 m2-lang.h
210 m2-typeprint.c
211 m2-valprint.c
212 m3-nat.c
213 m68k-stub.c
214 m68k-tdep.c
215 m88k-nat.c
216 m88k-tdep.c
217 mac-defs.h
218 mac-xdep.c
219 mac-gdb.r
220 main.c
221 maint.c
222 mdebugread.c
223 mem-break.c
224 minimon.h
225 minsyms.c
226 mips-nat.c
227 mips-tdep.c
228 mipsm3-nat.c
229 mipsv4-nat.c
230 mipsread.c
231 monitor.h
232 monitor.c
233 mpw-config.in
234 mpw-make.sed
235 news-xdep.c
236 nindy-share
237 nindy-tdep.c
238 nlm
239 nlmread.c
240 ns32k-tdep.c
241 ns32km3-nat.c
242 objfiles.c
243 objfiles.h
244 op50-rom.c
245 os9kread.c
246 osfsolib.c
247 parse.c
248 parser-defs.h
249 partial-stab.h
250 printcmd.c
251 procfs.c
252 ptx4-nat.c
253 pyr-tdep.c
254 pyr-xdep.c
255 regex.c
256 regex.h
257 remote-adapt.c
258 remote-array.c
259 remote-bug.c
260 remote-e7000.c
261 remote-eb.c
262 remote-es.c
263 remote-est.c
264 remote-hms.c
265 remote-mips.c
266 remote-mm.c
267 remote-nindy.c
268 remote-nrom.c
269 remote-os9k.c
270 remote-pa.c
271 remote-rdp.c
272 remote-sim.c
273 remote-sim.h
274 remote-st.c
275 remote-udi.c
276 remote-utils.c
277 remote-utils.h
278 remote-vx.c
279 remote-vx29k.c
280 remote-vx68.c
281 remote-vx960.c
282 remote-vxmips.c
283 remote-vxsparc.c
284 remote.c
285 rs6000-nat.c
286 rs6000-tdep.c
287 rom68k-rom.c
288 saber.suppress
289 scm-exp.c
290 scm-lang.c
291 scm-lang.h
292 scm-tags.h
293 scm-valprint.c
294 ser-e7kpc.c
295 ser-go32.c
296 ser-mac.c
297 ser-tcp.c
298 ser-unix.c
299 serial.c
300 serial.h
301 sh-tdep.c
302 sh3-rom.c
303 signals.h
304 solib.c
305 solib.h
306 somread.c
307 somsolib.c
308 somsolib.h
309 source.c
310 sparc-nat.c
311 sparc-stub.c
312 sparc-tdep.c
313 sparcl-stub.c
314 sparcl-tdep.c
315 stabsread.c
316 stabsread.h
317 stack.c
318 standalone.c
319 stop-gdb.c
320 stuff.c
321 sun3-nat.c
322 sun386-nat.c
323 symfile.c
324 symfile.h
325 symm-nat.c
326 symm-tdep.c
327 symmisc.c
328 symtab.c
329 symtab.h
330 tahoe-tdep.c
331 target.c
332 target.h
333 terminal.h
334 testsuite
335 thread.c
336 thread.h
337 top.c
338 top.h
339 typeprint.c
340 typeprint.h
341 ultra3-nat.c
342 ultra3-xdep.c
343 umax-xdep.c
344 utils.c
345 valarith.c
346 valops.c
347 valprint.c
348 valprint.h
349 value.h
350 values.c
351 vax-tdep.c
352 vx-share
353 w65-tdep.c
354 w89k-rom.c
355 win32-nat.c
356 xcoffread.c
357 xcoffsolib.c
358 xcoffsolib.h
359 xmodem.c
360 xmodem.h
361 z8k-tdep.c
362
363 # Things which are explicitly *not* kept, for now.
364
365 Things-to-lose:
366
367 ser-go32-para.c
368 HOW_TO_RELEASE
369
370 Do-last:
371
372 # Don't try to clean directories here, as the 'mv' command will fail.
373 # Also, grep fails on NFS mounted directories.
374 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
375 echo Catering to RMS by removing traces of \"gdbtk\"...
376 for i in * ; do
377 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
378 echo Removing traces of \"gdbtk\" out of $i...
379 cp $i new
380 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
381 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
382 echo Caching $i in .Recover...
383 mv $i .Recover
384 fi
385 mv new $i
386 fi
387 done
388 else
389 echo Leaving \"gdbtk\" in the sources...
390 for i in * ; do
391 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
392 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
393 cp $i new
394 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
395 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
396 echo Caching $i in .Recover...
397 mv $i .Recover
398 fi
399 mv new $i
400 fi
401 done
402 fi
403
404 r16_files="configure.in configure"
405
406 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
407 for i in $r16_files ; do
408 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
409 if [ -n "${verbose}" ] ; then
410 echo Keeping r16 stuff in $i
411 fi
412 fi
413 done
414 else
415 for i in $r16_files ; do
416 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
417 if [ -n "${verbose}" ] ; then
418 echo Removing traces of \"r16\" from $i...
419 fi
420 cp $i new
421 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
422 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
423 if [ -n "${verbose}" ] ; then
424 echo Caching $i in .Recover...
425 fi
426 mv $i .Recover
427 fi
428 mv new $i
429 fi
430 done
431 fi
432
433 arc_files="configure.in configure ChangeLog"
434
435 if ( echo $* | grep keep\-arc > /dev/null ) ; then
436 for i in $arc_files ; do
437 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
438 if [ -n "${verbose}" ] ; then
439 echo Keeping arc stuff in $i
440 fi
441 fi
442 done
443 else
444 for i in $arc_files ; do
445 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
446 if [ -n "${verbose}" ] ; then
447 echo Removing traces of \"arc\" from $i...
448 fi
449 cp $i new
450 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
451 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
452 if [ -n "${verbose}" ] ; then
453 echo Caching $i in .Recover...
454 fi
455 mv $i .Recover
456 fi
457 mv new $i
458 fi
459 done
460 fi
461
462 for i in * ; do
463 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
464 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
465 fi
466 done
467
468 #
469 # End of file.
This page took 0.039619 seconds and 5 git commands to generate.