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