v9 unsanitization
[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
2b14c195
KH
274sparcl-stub.c
275sparcl-tdep.c
a96c3444 276sparclite
d07734e3
FF
277stabsread.c
278stabsread.h
eeadf5c2
RP
279stack.c
280standalone.c
eeadf5c2 281stuff.c
dc48694c 282sun3-nat.c
61bbb1c2 283sun386-nat.c
eeadf5c2
RP
284symfile.c
285symfile.h
d39d83c1 286symm-nat.c
203a8d54 287symm-tdep.c
eeadf5c2
RP
288symmisc.c
289symtab.c
290symtab.h
eeadf5c2
RP
291tahoe-pinsn.c
292target.c
293target.h
eeadf5c2 294terminal.h
a2df03aa 295testsuite
6a21c756
SG
296thread.c
297thread.h
172559ec
JK
298top.c
299top.h
a8a69e63
FF
300typeprint.c
301typeprint.h
6bf98ac0 302ultra3-nat.c
1111151a 303ultra3-xdep.c
eeadf5c2
RP
304umax-xdep.c
305utils.c
306valarith.c
307valops.c
308valprint.c
a8a69e63 309valprint.h
eeadf5c2
RP
310value.h
311values.c
eeadf5c2
RP
312vax-pinsn.c
313vx-share
6373dbe3
JG
314xcoffexec.c
315xcoffread.c
1eeba686
PB
316xcoffsolib.c
317xcoffsolib.h
2aedd91e 318z8k-tdep.c
eeadf5c2 319
87756e15 320
f747d259 321# Things which are explicitly *not* kept, for now.
2b577349
JG
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.
743b663c
FF
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.
2b577349
JG
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.
743b663c
FF
334# state.c - Not used at the moment, keep for reference (fnf)
335# state.h - Not used at the moment, keep for reference (fnf)
2b577349
JG
336# tests - Old test programs for GDB, pre-gdbtest and pre-
337# DejaGnu.
f747d259 338
87756e15
RP
339Things-to-lose:
340
341deblib
342energize
343energize-patches
344energize.c
345energize.h
87756e15
RP
346remote-sa.sparc.c
347state.c
348state.h
349tests
350
eeadf5c2
RP
351Do-last:
352
85b9835f
DE
353echo 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.
357if ( 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
363else
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
376fi
377
d1bcda67
SS
378echo 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.
382if ( 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
388else
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
401fi
402
eeadf5c2 403# End of file.
This page took 0.15624 seconds and 4 git commands to generate.