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