Commit | Line | Data |
---|---|---|
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 | |
16 | Do-first: | |
17 | ||
cb747ec5 | 18 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
40b92220 | 19 | keep_these_too="sp64-tdep.c" |
3ea2c30a FF |
20 | else |
21 | lose_these_too="sp64-tdep.c" | |
cb747ec5 DE |
22 | fi |
23 | ||
d1bcda67 SS |
24 | mpw_files="mpw-config.in mpw-make.in ser-mac.c 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 | ||
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 | ||
58 | Things-to-keep: | |
59 | ||
60 | .gdbinit | |
a96c3444 | 61 | 29k-share |
eeadf5c2 RP |
62 | COPYING |
63 | ChangeLog | |
64 | ChangeLog-3.x | |
ee799e2a | 65 | ChangeLog-9091 |
5debf76d | 66 | ChangeLog-92 |
1ea8b1dc | 67 | ChangeLog-93 |
bdf3621b | 68 | Makefile.in |
ddce75e0 | 69 | NEWS |
eeadf5c2 RP |
70 | Projects |
71 | README | |
72 | TODO | |
b4b0321b FF |
73 | a29k-pinsn.c |
74 | a29k-tdep.c | |
203a8d54 | 75 | a68v-nat.c |
cef4c2e7 PS |
76 | alpha-nat.c |
77 | alpha-tdep.c | |
203a8d54 | 78 | altos-xdep.c |
eeadf5c2 | 79 | arm-convert.s |
eeadf5c2 RP |
80 | arm-pinsn.c |
81 | arm-tdep.c | |
82 | arm-xdep.c | |
83 | blockframe.c | |
84 | breakpoint.c | |
85 | breakpoint.h | |
2ce38c6d JG |
86 | buildsym.c |
87 | buildsym.h | |
56d921a8 | 88 | c-exp.y |
22e39759 FF |
89 | c-lang.c |
90 | c-lang.h | |
a8a69e63 FF |
91 | c-typeprint.c |
92 | c-valprint.c | |
be772100 | 93 | call-cmds.h |
b1086bf5 FF |
94 | ch-exp.y |
95 | ch-lang.c | |
96 | ch-lang.h | |
97 | ch-typeprint.c | |
98 | ch-valprint.c | |
ead291d4 SG |
99 | coff-solib.c |
100 | coff-solib.h | |
eeadf5c2 RP |
101 | coffread.c |
102 | command.c | |
103 | command.h | |
51b80b00 FF |
104 | complaints.c |
105 | complaints.h | |
f187c3a4 | 106 | config |
eeadf5c2 RP |
107 | configure.in |
108 | convex-pinsn.c | |
109 | convex-tdep.c | |
110 | convex-xdep.c | |
eeadf5c2 RP |
111 | copying.awk |
112 | copying.c | |
203a8d54 | 113 | core-svr4.c |
eeadf5c2 RP |
114 | core.c |
115 | coredep.c | |
dfc82617 | 116 | corelow.c |
a8a69e63 | 117 | cp-valprint.c |
eeadf5c2 | 118 | dbxread.c |
755892d6 RP |
119 | dcache.c |
120 | dcache.h | |
eeadf5c2 | 121 | defs.h |
be0ed5bb | 122 | delta68-nat.c |
2dbde378 | 123 | demangle.c |
eeadf5c2 | 124 | doc |
0a8f1742 | 125 | dpx2-nat.c |
2d628281 JK |
126 | dst.h |
127 | dstread.c | |
6fccdaf4 FF |
128 | dwarfread.c |
129 | elfread.c | |
eeadf5c2 RP |
130 | environ.c |
131 | environ.h | |
132 | eval.c | |
133 | exec.c | |
134 | expprint.c | |
eeadf5c2 RP |
135 | expression.h |
136 | findvar.c | |
e745abe5 | 137 | fork-child.c |
eeadf5c2 | 138 | frame.h |
5c5b5d4b | 139 | gcc.patch |
ed7c0948 | 140 | gdb-stabs.h |
0857b46a | 141 | gdb.1 |
eeadf5c2 RP |
142 | gdbcmd.h |
143 | gdbcore.h | |
463a71db | 144 | gdbserver |
a1f596f4 FF |
145 | gdbtypes.c |
146 | gdbtypes.h | |
ae0ea72e | 147 | go32-xdep.c |
eeadf5c2 RP |
148 | gould-pinsn.c |
149 | gould-xdep.c | |
0a8ed751 | 150 | h8300-tdep.c |
5cd0940a | 151 | h8500-tdep.c |
b1de302a | 152 | hp300ux-nat.c |
76b731f9 | 153 | hppa-pinsn.c |
66a1aa07 | 154 | hppa-tdep.c |
ca048722 | 155 | hppab-nat.c |
ca048722 | 156 | hppah-nat.c |
ef0faeb6 | 157 | i386-nlmstub.c |
eeadf5c2 RP |
158 | i386-pinsn.c |
159 | i386-stub.c | |
160 | i386-tdep.c | |
2c7ab4ca | 161 | i386aix-nat.c |
0e35d2f3 | 162 | i386b-nat.c |
c458501e | 163 | i386ly-tdep.c |
c2d751d5 | 164 | i386m3-nat.c |
a113beac | 165 | i386mach-nat.c |
c7c94073 | 166 | i386v-nat.c |
4d0eabff | 167 | i386v4-nat.c |
56d921a8 | 168 | i387-tdep.c |
eeadf5c2 RP |
169 | i960-pinsn.c |
170 | i960-tdep.c | |
eeadf5c2 RP |
171 | infcmd.c |
172 | inferior.h | |
173 | inflow.c | |
174 | infptrace.c | |
175 | infrun.c | |
eeadf5c2 | 176 | inftarg.c |
a70dc898 | 177 | irix4-nat.c |
a2f1e2e5 | 178 | irix5-nat.c |
4aadcb02 | 179 | isi-xdep.c |
eeadf5c2 | 180 | kdb-start.c |
56d921a8 JG |
181 | language.c |
182 | language.h | |
069e0566 | 183 | lynx-nat.c |
56d921a8 | 184 | m2-exp.y |
22e39759 FF |
185 | m2-lang.c |
186 | m2-lang.h | |
a8a69e63 FF |
187 | m2-typeprint.c |
188 | m2-valprint.c | |
c2d751d5 | 189 | m3-nat.c |
eeadf5c2 RP |
190 | m68k-pinsn.c |
191 | m68k-stub.c | |
192 | m68k-tdep.c | |
173a4f1b | 193 | m88k-nat.c |
eeadf5c2 RP |
194 | m88k-pinsn.c |
195 | m88k-tdep.c | |
eeadf5c2 | 196 | main.c |
0239d9b3 | 197 | maint.c |
a2f1e2e5 | 198 | mdebugread.c |
eeadf5c2 | 199 | mem-break.c |
1111151a | 200 | minimon.h |
a1f596f4 | 201 | minsyms.c |
a70dc898 | 202 | mips-nat.c |
eeadf5c2 RP |
203 | mips-pinsn.c |
204 | mips-tdep.c | |
c2d751d5 | 205 | mipsm3-nat.c |
eeadf5c2 | 206 | mipsread.c |
2f1c04d1 | 207 | monitor.h |
eeadf5c2 RP |
208 | news-xdep.c |
209 | nindy-share | |
210 | nindy-tdep.c | |
db85f523 | 211 | nlmread.c |
eeadf5c2 RP |
212 | ns32k-opcode.h |
213 | ns32k-pinsn.c | |
c2d751d5 | 214 | ns32km3-nat.c |
a1f596f4 | 215 | objfiles.c |
5e2e79f8 | 216 | objfiles.h |
25200748 | 217 | os9kread.c |
cef4c2e7 | 218 | osfsolib.c |
e4dd52dd | 219 | paread.c |
56d921a8 JG |
220 | parse.c |
221 | parser-defs.h | |
7e258d18 | 222 | partial-stab.h |
eeadf5c2 | 223 | printcmd.c |
6fccdaf4 | 224 | procfs.c |
eeadf5c2 RP |
225 | pyr-pinsn.c |
226 | pyr-tdep.c | |
227 | pyr-xdep.c | |
228 | regex.c | |
229 | regex.h | |
230 | rem-multi.shar | |
1111151a | 231 | remote-adapt.c |
203a8d54 | 232 | remote-bug.c |
a0b28275 | 233 | remote-e7000.c |
eeadf5c2 | 234 | remote-eb.c |
91c87211 | 235 | remote-es.c |
d93b79d9 | 236 | remote-hms.c |
c2a0f1cb | 237 | remote-mips.c |
1111151a | 238 | remote-mm.c |
c033ec17 | 239 | remote-mon.c |
eeadf5c2 | 240 | remote-nindy.c |
25200748 | 241 | remote-os9k.c |
ec25d19b | 242 | remote-sim.c |
40b92220 | 243 | remote-sim.h |
91c87211 | 244 | remote-st.c |
e4dd52dd | 245 | remote-udi.c |
3283eab3 JK |
246 | remote-utils.c |
247 | remote-utils.h | |
eeadf5c2 | 248 | remote-vx.c |
2aedd91e | 249 | remote-z8k.c |
eeadf5c2 | 250 | remote.c |
dc48694c | 251 | rs6000-nat.c |
6373dbe3 JG |
252 | rs6000-pinsn.c |
253 | rs6000-tdep.c | |
eeadf5c2 | 254 | saber.suppress |
ddce75e0 | 255 | ser-go32.c |
4d551aa3 | 256 | ser-tcp.c |
e8a5f0ed SG |
257 | ser-unix.c |
258 | serial.c | |
ddce75e0 | 259 | serial.h |
9faacb92 | 260 | sh-tdep.c |
eeadf5c2 | 261 | signals.h |
eeadf5c2 | 262 | solib.c |
a1f596f4 | 263 | solib.h |
eeadf5c2 | 264 | source.c |
dfc82617 | 265 | sparc-nat.c |
eeadf5c2 | 266 | sparc-pinsn.c |
c9715956 | 267 | sparc-stub.c |
eeadf5c2 | 268 | sparc-tdep.c |
a96c3444 | 269 | sparclite |
d07734e3 FF |
270 | stabsread.c |
271 | stabsread.h | |
eeadf5c2 RP |
272 | stack.c |
273 | standalone.c | |
eeadf5c2 | 274 | stuff.c |
dc48694c | 275 | sun3-nat.c |
61bbb1c2 | 276 | sun386-nat.c |
eeadf5c2 RP |
277 | symfile.c |
278 | symfile.h | |
d39d83c1 | 279 | symm-nat.c |
203a8d54 | 280 | symm-tdep.c |
eeadf5c2 RP |
281 | symmisc.c |
282 | symtab.c | |
283 | symtab.h | |
eeadf5c2 RP |
284 | tahoe-pinsn.c |
285 | target.c | |
286 | target.h | |
eeadf5c2 | 287 | terminal.h |
a2df03aa | 288 | testsuite |
6a21c756 SG |
289 | thread.c |
290 | thread.h | |
a8a69e63 FF |
291 | typeprint.c |
292 | typeprint.h | |
6bf98ac0 | 293 | ultra3-nat.c |
1111151a | 294 | ultra3-xdep.c |
eeadf5c2 RP |
295 | umax-xdep.c |
296 | utils.c | |
297 | valarith.c | |
298 | valops.c | |
299 | valprint.c | |
a8a69e63 | 300 | valprint.h |
eeadf5c2 RP |
301 | value.h |
302 | values.c | |
eeadf5c2 RP |
303 | vax-pinsn.c |
304 | vx-share | |
6373dbe3 JG |
305 | xcoffexec.c |
306 | xcoffread.c | |
1eeba686 PB |
307 | xcoffsolib.c |
308 | xcoffsolib.h | |
2aedd91e | 309 | z8k-tdep.c |
eeadf5c2 | 310 | |
87756e15 | 311 | |
f747d259 | 312 | # Things which are explicitly *not* kept, for now. |
2b577349 JG |
313 | # deblib/ - CVS won't let you blow away directories yet, |
314 | # so this is still around from when Stu checked | |
315 | # it in, as part of Lucid support. | |
743b663c FF |
316 | # energize - Part of Lucid support. |
317 | # energize-patches - Part of Lucid support. | |
318 | # energize.c - Part of Lucid support. | |
319 | # energize.h - Part of Lucid support. | |
2b577349 JG |
320 | # remote-sa.sparc.c - Remote target for a standalone SPARC, using |
321 | # the FORTH console ROMs. We never got the paperwork | |
322 | # straight, since Sun's lawyers messed with the | |
323 | # FSF contract and RMS didn't accept the changes. | |
324 | # Written at SunLabs. | |
743b663c FF |
325 | # state.c - Not used at the moment, keep for reference (fnf) |
326 | # state.h - Not used at the moment, keep for reference (fnf) | |
2b577349 JG |
327 | # tests - Old test programs for GDB, pre-gdbtest and pre- |
328 | # DejaGnu. | |
f747d259 | 329 | |
87756e15 RP |
330 | Things-to-lose: |
331 | ||
332 | deblib | |
333 | energize | |
334 | energize-patches | |
335 | energize.c | |
336 | energize.h | |
87756e15 RP |
337 | remote-sa.sparc.c |
338 | state.c | |
339 | state.h | |
340 | tests | |
341 | ||
eeadf5c2 RP |
342 | Do-last: |
343 | ||
85b9835f DE |
344 | echo Looking for signs of \"v9\"... |
345 | ||
346 | # Don't try to clean directories here, as the 'mv' command will fail. | |
347 | # Also, grep fails on NFS mounted directories. | |
348 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then | |
349 | for i in * ; do | |
350 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
351 | echo Keeping v9 stuff in $i | |
352 | fi | |
353 | done | |
354 | else | |
355 | for i in * ; do | |
356 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
357 | echo Cleaning the \"v9\" out of $i... | |
358 | cp $i new | |
359 | sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new | |
360 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
361 | echo Caching $i in .Recover... | |
362 | mv $i .Recover | |
363 | fi | |
364 | mv new $i | |
365 | fi | |
366 | done | |
367 | fi | |
368 | ||
d1bcda67 SS |
369 | echo Removing traces of \"mpw\"... |
370 | ||
371 | # Don't try to clean directories here, as the 'mv' command will fail. | |
372 | # Also, grep fails on NFS mounted directories. | |
373 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
374 | for i in * ; do | |
375 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
376 | echo Keeping mpw stuff in $i | |
377 | fi | |
378 | done | |
379 | else | |
380 | for i in * ; do | |
381 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
382 | echo Removing traces of \"mpw\" out of $i... | |
383 | cp $i new | |
384 | sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new | |
385 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
386 | echo Caching $i in .Recover... | |
387 | mv $i .Recover | |
388 | fi | |
389 | mv new $i | |
390 | fi | |
391 | done | |
392 | fi | |
393 | ||
eeadf5c2 | 394 | # End of file. |