* libbfd.h (bfd_realloc): Change last arg to "size_t size".
[deliverable/binutils-gdb.git] / gdb / .Sanitize
CommitLineData
f4240b08 1# .Sanitize for devo/gdb.
eeadf5c2 2
d1bcda67 3# Each directory to survive its way into a release will need a file
eeadf5c2
RP
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
d1bcda67 14# done in this directory.
eeadf5c2
RP
15
16Do-first:
17
cb747ec5 18if ( echo $* | grep keep\-v9 > /dev/null ) ; then
40b92220 19 keep_these_too="sp64-tdep.c"
3ea2c30a
FF
20else
21 lose_these_too="sp64-tdep.c"
cb747ec5
DE
22fi
23
e632f85e 24mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r ChangeLog.mpw"
d1bcda67
SS
25
26if ( 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
31else
32 lose_these_too="${mpw_files} ${lose_these_too}"
33 if [ -n "${verbose}" ] ; then
34 echo Deleting ${mpw_files}
35 fi
36fi
37
38gm_files="mpw-xconfig.in mpw-init.c ChangeLog.gm"
39
40if ( 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
45else
46 lose_these_too="${gm_files} ${lose_these_too}"
47 if [ -n "${verbose}" ] ; then
48 echo Deleting ${gm_files}
49 fi
50fi
51
eeadf5c2
RP
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
58Things-to-keep:
59
60.gdbinit
a96c3444 6129k-share
eeadf5c2
RP
62COPYING
63ChangeLog
64ChangeLog-3.x
ee799e2a 65ChangeLog-9091
5debf76d 66ChangeLog-92
1ea8b1dc 67ChangeLog-93
bdf3621b 68Makefile.in
ddce75e0 69NEWS
eeadf5c2
RP
70Projects
71README
72TODO
b4b0321b
FF
73a29k-pinsn.c
74a29k-tdep.c
203a8d54 75a68v-nat.c
cef4c2e7
PS
76alpha-nat.c
77alpha-tdep.c
203a8d54 78altos-xdep.c
1c95d7ab
JK
79annotate.c
80annotate.h
eeadf5c2 81arm-convert.s
eeadf5c2
RP
82arm-pinsn.c
83arm-tdep.c
84arm-xdep.c
85blockframe.c
86breakpoint.c
87breakpoint.h
2ce38c6d
JG
88buildsym.c
89buildsym.h
56d921a8 90c-exp.y
22e39759
FF
91c-lang.c
92c-lang.h
a8a69e63
FF
93c-typeprint.c
94c-valprint.c
be772100 95call-cmds.h
b1086bf5
FF
96ch-exp.y
97ch-lang.c
98ch-lang.h
99ch-typeprint.c
100ch-valprint.c
ead291d4
SG
101coff-solib.c
102coff-solib.h
eeadf5c2
RP
103coffread.c
104command.c
105command.h
51b80b00
FF
106complaints.c
107complaints.h
f187c3a4 108config
eeadf5c2
RP
109configure.in
110convex-pinsn.c
111convex-tdep.c
112convex-xdep.c
eeadf5c2
RP
113copying.awk
114copying.c
203a8d54 115core-svr4.c
eeadf5c2
RP
116core.c
117coredep.c
dfc82617 118corelow.c
a8a69e63 119cp-valprint.c
eeadf5c2 120dbxread.c
755892d6
RP
121dcache.c
122dcache.h
eeadf5c2 123defs.h
be0ed5bb 124delta68-nat.c
2dbde378 125demangle.c
eeadf5c2 126doc
0a8f1742 127dpx2-nat.c
2d628281
JK
128dst.h
129dstread.c
6fccdaf4
FF
130dwarfread.c
131elfread.c
eeadf5c2
RP
132environ.c
133environ.h
134eval.c
135exec.c
136expprint.c
eeadf5c2
RP
137expression.h
138findvar.c
e745abe5 139fork-child.c
eeadf5c2 140frame.h
5c5b5d4b 141gcc.patch
ed7c0948 142gdb-stabs.h
0857b46a 143gdb.1
dec525ce 144gdba.el
eeadf5c2
RP
145gdbcmd.h
146gdbcore.h
463a71db 147gdbserver
a1f596f4
FF
148gdbtypes.c
149gdbtypes.h
ae0ea72e 150go32-xdep.c
eeadf5c2
RP
151gould-pinsn.c
152gould-xdep.c
0a8ed751 153h8300-tdep.c
5cd0940a 154h8500-tdep.c
b1de302a 155hp300ux-nat.c
76b731f9 156hppa-pinsn.c
66a1aa07 157hppa-tdep.c
ca048722 158hppab-nat.c
ca048722 159hppah-nat.c
ef0faeb6 160i386-nlmstub.c
eeadf5c2
RP
161i386-pinsn.c
162i386-stub.c
163i386-tdep.c
2c7ab4ca 164i386aix-nat.c
0e35d2f3 165i386b-nat.c
c458501e 166i386ly-tdep.c
c2d751d5 167i386m3-nat.c
a113beac 168i386mach-nat.c
c7c94073 169i386v-nat.c
4d0eabff 170i386v4-nat.c
56d921a8 171i387-tdep.c
eeadf5c2
RP
172i960-pinsn.c
173i960-tdep.c
eeadf5c2
RP
174infcmd.c
175inferior.h
176inflow.c
177infptrace.c
178infrun.c
eeadf5c2 179inftarg.c
a70dc898 180irix4-nat.c
a2f1e2e5 181irix5-nat.c
4aadcb02 182isi-xdep.c
eeadf5c2 183kdb-start.c
56d921a8
JG
184language.c
185language.h
069e0566 186lynx-nat.c
56d921a8 187m2-exp.y
22e39759
FF
188m2-lang.c
189m2-lang.h
a8a69e63
FF
190m2-typeprint.c
191m2-valprint.c
c2d751d5 192m3-nat.c
eeadf5c2
RP
193m68k-pinsn.c
194m68k-stub.c
195m68k-tdep.c
173a4f1b 196m88k-nat.c
eeadf5c2
RP
197m88k-pinsn.c
198m88k-tdep.c
eeadf5c2 199main.c
0239d9b3 200maint.c
a2f1e2e5 201mdebugread.c
eeadf5c2 202mem-break.c
1111151a 203minimon.h
a1f596f4 204minsyms.c
a70dc898 205mips-nat.c
eeadf5c2
RP
206mips-pinsn.c
207mips-tdep.c
c2d751d5 208mipsm3-nat.c
2fe3b329 209mipsv4-nat.c
eeadf5c2 210mipsread.c
2f1c04d1 211monitor.h
eeadf5c2
RP
212news-xdep.c
213nindy-share
214nindy-tdep.c
db85f523 215nlmread.c
eeadf5c2
RP
216ns32k-opcode.h
217ns32k-pinsn.c
c2d751d5 218ns32km3-nat.c
a1f596f4 219objfiles.c
5e2e79f8 220objfiles.h
25200748 221os9kread.c
cef4c2e7 222osfsolib.c
e4dd52dd 223paread.c
56d921a8
JG
224parse.c
225parser-defs.h
7e258d18 226partial-stab.h
eeadf5c2 227printcmd.c
6fccdaf4 228procfs.c
c6889f63 229ptx4-nat.c
eeadf5c2
RP
230pyr-pinsn.c
231pyr-tdep.c
232pyr-xdep.c
233regex.c
234regex.h
235rem-multi.shar
1111151a 236remote-adapt.c
203a8d54 237remote-bug.c
a0b28275 238remote-e7000.c
eeadf5c2 239remote-eb.c
91c87211 240remote-es.c
d93b79d9 241remote-hms.c
c2a0f1cb 242remote-mips.c
1111151a 243remote-mm.c
c033ec17 244remote-mon.c
eeadf5c2 245remote-nindy.c
25200748 246remote-os9k.c
ec25d19b 247remote-sim.c
40b92220 248remote-sim.h
91c87211 249remote-st.c
e4dd52dd 250remote-udi.c
3283eab3
JK
251remote-utils.c
252remote-utils.h
eeadf5c2 253remote-vx.c
2aedd91e 254remote-z8k.c
eeadf5c2 255remote.c
dc48694c 256rs6000-nat.c
6373dbe3
JG
257rs6000-pinsn.c
258rs6000-tdep.c
eeadf5c2 259saber.suppress
ddce75e0 260ser-go32.c
4d551aa3 261ser-tcp.c
e8a5f0ed
SG
262ser-unix.c
263serial.c
ddce75e0 264serial.h
9faacb92 265sh-tdep.c
eeadf5c2 266signals.h
eeadf5c2 267solib.c
a1f596f4 268solib.h
eeadf5c2 269source.c
dfc82617 270sparc-nat.c
eeadf5c2 271sparc-pinsn.c
c9715956 272sparc-stub.c
eeadf5c2 273sparc-tdep.c
a96c3444 274sparclite
d07734e3
FF
275stabsread.c
276stabsread.h
eeadf5c2
RP
277stack.c
278standalone.c
eeadf5c2 279stuff.c
dc48694c 280sun3-nat.c
61bbb1c2 281sun386-nat.c
eeadf5c2
RP
282symfile.c
283symfile.h
d39d83c1 284symm-nat.c
203a8d54 285symm-tdep.c
eeadf5c2
RP
286symmisc.c
287symtab.c
288symtab.h
eeadf5c2
RP
289tahoe-pinsn.c
290target.c
291target.h
eeadf5c2 292terminal.h
a2df03aa 293testsuite
6a21c756
SG
294thread.c
295thread.h
a8a69e63
FF
296typeprint.c
297typeprint.h
6bf98ac0 298ultra3-nat.c
1111151a 299ultra3-xdep.c
eeadf5c2
RP
300umax-xdep.c
301utils.c
302valarith.c
303valops.c
304valprint.c
a8a69e63 305valprint.h
eeadf5c2
RP
306value.h
307values.c
eeadf5c2
RP
308vax-pinsn.c
309vx-share
6373dbe3
JG
310xcoffexec.c
311xcoffread.c
1eeba686
PB
312xcoffsolib.c
313xcoffsolib.h
2aedd91e 314z8k-tdep.c
eeadf5c2 315
87756e15 316
f747d259 317# Things which are explicitly *not* kept, for now.
2b577349
JG
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.
743b663c
FF
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.
2b577349
JG
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.
743b663c
FF
330# state.c - Not used at the moment, keep for reference (fnf)
331# state.h - Not used at the moment, keep for reference (fnf)
2b577349
JG
332# tests - Old test programs for GDB, pre-gdbtest and pre-
333# DejaGnu.
f747d259 334
87756e15
RP
335Things-to-lose:
336
337deblib
338energize
339energize-patches
340energize.c
341energize.h
87756e15
RP
342remote-sa.sparc.c
343state.c
344state.h
345tests
346
eeadf5c2
RP
347Do-last:
348
85b9835f
DE
349echo 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.
353if ( 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
359else
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
372fi
373
d1bcda67
SS
374echo 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.
378if ( 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
384else
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
397fi
398
eeadf5c2 399# End of file.
This page took 0.243704 seconds and 4 git commands to generate.