]>
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 | ||
e632f85e | 24 | mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r ChangeLog.mpw" |
d1bcda67 SS |
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 |
1c95d7ab JK |
79 | annotate.c |
80 | annotate.h | |
eeadf5c2 | 81 | arm-convert.s |
eeadf5c2 RP |
82 | arm-pinsn.c |
83 | arm-tdep.c | |
84 | arm-xdep.c | |
85 | blockframe.c | |
86 | breakpoint.c | |
87 | breakpoint.h | |
2ce38c6d JG |
88 | buildsym.c |
89 | buildsym.h | |
56d921a8 | 90 | c-exp.y |
22e39759 FF |
91 | c-lang.c |
92 | c-lang.h | |
a8a69e63 FF |
93 | c-typeprint.c |
94 | c-valprint.c | |
be772100 | 95 | call-cmds.h |
b1086bf5 FF |
96 | ch-exp.y |
97 | ch-lang.c | |
98 | ch-lang.h | |
99 | ch-typeprint.c | |
100 | ch-valprint.c | |
ead291d4 SG |
101 | coff-solib.c |
102 | coff-solib.h | |
eeadf5c2 RP |
103 | coffread.c |
104 | command.c | |
105 | command.h | |
51b80b00 FF |
106 | complaints.c |
107 | complaints.h | |
f187c3a4 | 108 | config |
eeadf5c2 RP |
109 | configure.in |
110 | convex-pinsn.c | |
111 | convex-tdep.c | |
112 | convex-xdep.c | |
eeadf5c2 RP |
113 | copying.awk |
114 | copying.c | |
203a8d54 | 115 | core-svr4.c |
eeadf5c2 RP |
116 | core.c |
117 | coredep.c | |
dfc82617 | 118 | corelow.c |
a8a69e63 | 119 | cp-valprint.c |
eeadf5c2 | 120 | dbxread.c |
755892d6 RP |
121 | dcache.c |
122 | dcache.h | |
eeadf5c2 | 123 | defs.h |
be0ed5bb | 124 | delta68-nat.c |
2dbde378 | 125 | demangle.c |
eeadf5c2 | 126 | doc |
0a8f1742 | 127 | dpx2-nat.c |
2d628281 JK |
128 | dst.h |
129 | dstread.c | |
6fccdaf4 FF |
130 | dwarfread.c |
131 | elfread.c | |
eeadf5c2 RP |
132 | environ.c |
133 | environ.h | |
134 | eval.c | |
135 | exec.c | |
136 | expprint.c | |
eeadf5c2 RP |
137 | expression.h |
138 | findvar.c | |
e745abe5 | 139 | fork-child.c |
eeadf5c2 | 140 | frame.h |
5c5b5d4b | 141 | gcc.patch |
ed7c0948 | 142 | gdb-stabs.h |
0857b46a | 143 | gdb.1 |
dec525ce | 144 | gdba.el |
eeadf5c2 RP |
145 | gdbcmd.h |
146 | gdbcore.h | |
463a71db | 147 | gdbserver |
a1f596f4 FF |
148 | gdbtypes.c |
149 | gdbtypes.h | |
ae0ea72e | 150 | go32-xdep.c |
eeadf5c2 RP |
151 | gould-pinsn.c |
152 | gould-xdep.c | |
0a8ed751 | 153 | h8300-tdep.c |
5cd0940a | 154 | h8500-tdep.c |
b1de302a | 155 | hp300ux-nat.c |
76b731f9 | 156 | hppa-pinsn.c |
66a1aa07 | 157 | hppa-tdep.c |
ca048722 | 158 | hppab-nat.c |
ca048722 | 159 | hppah-nat.c |
ef0faeb6 | 160 | i386-nlmstub.c |
eeadf5c2 RP |
161 | i386-pinsn.c |
162 | i386-stub.c | |
163 | i386-tdep.c | |
2c7ab4ca | 164 | i386aix-nat.c |
0e35d2f3 | 165 | i386b-nat.c |
c458501e | 166 | i386ly-tdep.c |
c2d751d5 | 167 | i386m3-nat.c |
a113beac | 168 | i386mach-nat.c |
c7c94073 | 169 | i386v-nat.c |
4d0eabff | 170 | i386v4-nat.c |
56d921a8 | 171 | i387-tdep.c |
eeadf5c2 RP |
172 | i960-pinsn.c |
173 | i960-tdep.c | |
eeadf5c2 RP |
174 | infcmd.c |
175 | inferior.h | |
176 | inflow.c | |
177 | infptrace.c | |
178 | infrun.c | |
eeadf5c2 | 179 | inftarg.c |
a70dc898 | 180 | irix4-nat.c |
a2f1e2e5 | 181 | irix5-nat.c |
4aadcb02 | 182 | isi-xdep.c |
eeadf5c2 | 183 | kdb-start.c |
56d921a8 JG |
184 | language.c |
185 | language.h | |
069e0566 | 186 | lynx-nat.c |
56d921a8 | 187 | m2-exp.y |
22e39759 FF |
188 | m2-lang.c |
189 | m2-lang.h | |
a8a69e63 FF |
190 | m2-typeprint.c |
191 | m2-valprint.c | |
c2d751d5 | 192 | m3-nat.c |
eeadf5c2 RP |
193 | m68k-pinsn.c |
194 | m68k-stub.c | |
195 | m68k-tdep.c | |
173a4f1b | 196 | m88k-nat.c |
eeadf5c2 RP |
197 | m88k-pinsn.c |
198 | m88k-tdep.c | |
eeadf5c2 | 199 | main.c |
0239d9b3 | 200 | maint.c |
a2f1e2e5 | 201 | mdebugread.c |
eeadf5c2 | 202 | mem-break.c |
1111151a | 203 | minimon.h |
a1f596f4 | 204 | minsyms.c |
a70dc898 | 205 | mips-nat.c |
eeadf5c2 RP |
206 | mips-pinsn.c |
207 | mips-tdep.c | |
c2d751d5 | 208 | mipsm3-nat.c |
2fe3b329 | 209 | mipsv4-nat.c |
eeadf5c2 | 210 | mipsread.c |
2f1c04d1 | 211 | monitor.h |
eeadf5c2 RP |
212 | news-xdep.c |
213 | nindy-share | |
214 | nindy-tdep.c | |
db85f523 | 215 | nlmread.c |
eeadf5c2 RP |
216 | ns32k-opcode.h |
217 | ns32k-pinsn.c | |
c2d751d5 | 218 | ns32km3-nat.c |
a1f596f4 | 219 | objfiles.c |
5e2e79f8 | 220 | objfiles.h |
25200748 | 221 | os9kread.c |
cef4c2e7 | 222 | osfsolib.c |
e4dd52dd | 223 | paread.c |
56d921a8 JG |
224 | parse.c |
225 | parser-defs.h | |
7e258d18 | 226 | partial-stab.h |
eeadf5c2 | 227 | printcmd.c |
6fccdaf4 | 228 | procfs.c |
c6889f63 | 229 | ptx4-nat.c |
eeadf5c2 RP |
230 | pyr-pinsn.c |
231 | pyr-tdep.c | |
232 | pyr-xdep.c | |
233 | regex.c | |
234 | regex.h | |
235 | rem-multi.shar | |
1111151a | 236 | remote-adapt.c |
203a8d54 | 237 | remote-bug.c |
a0b28275 | 238 | remote-e7000.c |
eeadf5c2 | 239 | remote-eb.c |
91c87211 | 240 | remote-es.c |
d93b79d9 | 241 | remote-hms.c |
c2a0f1cb | 242 | remote-mips.c |
1111151a | 243 | remote-mm.c |
c033ec17 | 244 | remote-mon.c |
eeadf5c2 | 245 | remote-nindy.c |
25200748 | 246 | remote-os9k.c |
ec25d19b | 247 | remote-sim.c |
40b92220 | 248 | remote-sim.h |
91c87211 | 249 | remote-st.c |
e4dd52dd | 250 | remote-udi.c |
3283eab3 JK |
251 | remote-utils.c |
252 | remote-utils.h | |
eeadf5c2 | 253 | remote-vx.c |
2aedd91e | 254 | remote-z8k.c |
eeadf5c2 | 255 | remote.c |
dc48694c | 256 | rs6000-nat.c |
6373dbe3 JG |
257 | rs6000-pinsn.c |
258 | rs6000-tdep.c | |
eeadf5c2 | 259 | saber.suppress |
ddce75e0 | 260 | ser-go32.c |
4d551aa3 | 261 | ser-tcp.c |
e8a5f0ed SG |
262 | ser-unix.c |
263 | serial.c | |
ddce75e0 | 264 | serial.h |
9faacb92 | 265 | sh-tdep.c |
eeadf5c2 | 266 | signals.h |
eeadf5c2 | 267 | solib.c |
a1f596f4 | 268 | solib.h |
eeadf5c2 | 269 | source.c |
dfc82617 | 270 | sparc-nat.c |
eeadf5c2 | 271 | sparc-pinsn.c |
c9715956 | 272 | sparc-stub.c |
eeadf5c2 | 273 | sparc-tdep.c |
2b14c195 KH |
274 | sparcl-stub.c |
275 | sparcl-tdep.c | |
a96c3444 | 276 | sparclite |
d07734e3 FF |
277 | stabsread.c |
278 | stabsread.h | |
eeadf5c2 RP |
279 | stack.c |
280 | standalone.c | |
eeadf5c2 | 281 | stuff.c |
dc48694c | 282 | sun3-nat.c |
61bbb1c2 | 283 | sun386-nat.c |
eeadf5c2 RP |
284 | symfile.c |
285 | symfile.h | |
d39d83c1 | 286 | symm-nat.c |
203a8d54 | 287 | symm-tdep.c |
eeadf5c2 RP |
288 | symmisc.c |
289 | symtab.c | |
290 | symtab.h | |
eeadf5c2 RP |
291 | tahoe-pinsn.c |
292 | target.c | |
293 | target.h | |
eeadf5c2 | 294 | terminal.h |
a2df03aa | 295 | testsuite |
6a21c756 SG |
296 | thread.c |
297 | thread.h | |
172559ec JK |
298 | top.c |
299 | top.h | |
a8a69e63 FF |
300 | typeprint.c |
301 | typeprint.h | |
6bf98ac0 | 302 | ultra3-nat.c |
1111151a | 303 | ultra3-xdep.c |
eeadf5c2 RP |
304 | umax-xdep.c |
305 | utils.c | |
306 | valarith.c | |
307 | valops.c | |
308 | valprint.c | |
a8a69e63 | 309 | valprint.h |
eeadf5c2 RP |
310 | value.h |
311 | values.c | |
eeadf5c2 RP |
312 | vax-pinsn.c |
313 | vx-share | |
6373dbe3 JG |
314 | xcoffexec.c |
315 | xcoffread.c | |
1eeba686 PB |
316 | xcoffsolib.c |
317 | xcoffsolib.h | |
2aedd91e | 318 | z8k-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 |
339 | Things-to-lose: |
340 | ||
341 | deblib | |
342 | energize | |
343 | energize-patches | |
344 | energize.c | |
345 | energize.h | |
87756e15 RP |
346 | remote-sa.sparc.c |
347 | state.c | |
348 | state.h | |
349 | tests | |
350 | ||
eeadf5c2 RP |
351 | Do-last: |
352 | ||
85b9835f DE |
353 | echo 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. | |
357 | if ( 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 | |
363 | else | |
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 | |
376 | fi | |
377 | ||
d1bcda67 SS |
378 | echo 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. | |
382 | if ( 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 | |
388 | else | |
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 | |
401 | fi | |
402 | ||
eeadf5c2 | 403 | # End of file. |