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 | Projects |
65 | README | |
66 | TODO | |
b4b0321b FF |
67 | a29k-pinsn.c |
68 | a29k-tdep.c | |
203a8d54 | 69 | a68v-nat.c |
cef4c2e7 PS |
70 | alpha-nat.c |
71 | alpha-tdep.c | |
203a8d54 | 72 | altos-xdep.c |
1c95d7ab JK |
73 | annotate.c |
74 | annotate.h | |
eeadf5c2 | 75 | arm-convert.s |
eeadf5c2 RP |
76 | arm-pinsn.c |
77 | arm-tdep.c | |
78 | arm-xdep.c | |
79 | blockframe.c | |
80 | breakpoint.c | |
81 | breakpoint.h | |
2ce38c6d JG |
82 | buildsym.c |
83 | buildsym.h | |
56d921a8 | 84 | c-exp.y |
22e39759 FF |
85 | c-lang.c |
86 | c-lang.h | |
a8a69e63 FF |
87 | c-typeprint.c |
88 | c-valprint.c | |
be772100 | 89 | call-cmds.h |
b1086bf5 FF |
90 | ch-exp.y |
91 | ch-lang.c | |
92 | ch-lang.h | |
93 | ch-typeprint.c | |
94 | ch-valprint.c | |
ead291d4 SG |
95 | coff-solib.c |
96 | coff-solib.h | |
eeadf5c2 RP |
97 | coffread.c |
98 | command.c | |
99 | command.h | |
51b80b00 FF |
100 | complaints.c |
101 | complaints.h | |
f187c3a4 | 102 | config |
eeadf5c2 RP |
103 | configure.in |
104 | convex-pinsn.c | |
105 | convex-tdep.c | |
106 | convex-xdep.c | |
eeadf5c2 RP |
107 | copying.awk |
108 | copying.c | |
256533df | 109 | core-sol2.c |
203a8d54 | 110 | core-svr4.c |
eeadf5c2 RP |
111 | core.c |
112 | coredep.c | |
dfc82617 | 113 | corelow.c |
a8a69e63 | 114 | cp-valprint.c |
670a8e09 | 115 | cxux-nat.c |
eeadf5c2 | 116 | dbxread.c |
755892d6 RP |
117 | dcache.c |
118 | dcache.h | |
eeadf5c2 | 119 | defs.h |
be0ed5bb | 120 | delta68-nat.c |
2dbde378 | 121 | demangle.c |
eeadf5c2 | 122 | doc |
0a8f1742 | 123 | dpx2-nat.c |
2d628281 JK |
124 | dst.h |
125 | dstread.c | |
6fccdaf4 FF |
126 | dwarfread.c |
127 | elfread.c | |
eeadf5c2 RP |
128 | environ.c |
129 | environ.h | |
130 | eval.c | |
131 | exec.c | |
132 | expprint.c | |
eeadf5c2 | 133 | expression.h |
042bb079 SS |
134 | f-exp.y |
135 | f-lang.c | |
136 | f-lang.h | |
137 | f-typeprint.c | |
138 | f-valprint.c | |
eeadf5c2 | 139 | findvar.c |
e745abe5 | 140 | fork-child.c |
eeadf5c2 | 141 | frame.h |
5c5b5d4b | 142 | gcc.patch |
ed7c0948 | 143 | gdb-stabs.h |
0857b46a | 144 | gdb.1 |
dec525ce | 145 | gdba.el |
eeadf5c2 RP |
146 | gdbcmd.h |
147 | gdbcore.h | |
463a71db | 148 | gdbserver |
8cb35771 SG |
149 | gdbtk.c |
150 | gdbtk.tcl | |
a1f596f4 FF |
151 | gdbtypes.c |
152 | gdbtypes.h | |
ae0ea72e | 153 | go32-xdep.c |
eeadf5c2 RP |
154 | gould-pinsn.c |
155 | gould-xdep.c | |
0a8ed751 | 156 | h8300-tdep.c |
5cd0940a | 157 | h8500-tdep.c |
b1de302a | 158 | hp300ux-nat.c |
76b731f9 | 159 | hppa-pinsn.c |
66a1aa07 | 160 | hppa-tdep.c |
ca048722 | 161 | hppab-nat.c |
ca048722 | 162 | hppah-nat.c |
ef0faeb6 | 163 | i386-nlmstub.c |
eeadf5c2 RP |
164 | i386-pinsn.c |
165 | i386-stub.c | |
166 | i386-tdep.c | |
2c7ab4ca | 167 | i386aix-nat.c |
0e35d2f3 | 168 | i386b-nat.c |
c458501e | 169 | i386ly-tdep.c |
c2d751d5 | 170 | i386m3-nat.c |
a113beac | 171 | i386mach-nat.c |
c7c94073 | 172 | i386v-nat.c |
4d0eabff | 173 | i386v4-nat.c |
56d921a8 | 174 | i387-tdep.c |
eeadf5c2 RP |
175 | i960-pinsn.c |
176 | i960-tdep.c | |
eeadf5c2 RP |
177 | infcmd.c |
178 | inferior.h | |
179 | inflow.c | |
180 | infptrace.c | |
181 | infrun.c | |
eeadf5c2 | 182 | inftarg.c |
a70dc898 | 183 | irix4-nat.c |
a2f1e2e5 | 184 | irix5-nat.c |
4aadcb02 | 185 | isi-xdep.c |
eeadf5c2 | 186 | kdb-start.c |
56d921a8 JG |
187 | language.c |
188 | language.h | |
069e0566 | 189 | lynx-nat.c |
56d921a8 | 190 | m2-exp.y |
22e39759 FF |
191 | m2-lang.c |
192 | m2-lang.h | |
a8a69e63 FF |
193 | m2-typeprint.c |
194 | m2-valprint.c | |
c2d751d5 | 195 | m3-nat.c |
eeadf5c2 RP |
196 | m68k-pinsn.c |
197 | m68k-stub.c | |
198 | m68k-tdep.c | |
173a4f1b | 199 | m88k-nat.c |
eeadf5c2 RP |
200 | m88k-pinsn.c |
201 | m88k-tdep.c | |
eeadf5c2 | 202 | main.c |
0239d9b3 | 203 | maint.c |
a2f1e2e5 | 204 | mdebugread.c |
eeadf5c2 | 205 | mem-break.c |
1111151a | 206 | minimon.h |
a1f596f4 | 207 | minsyms.c |
a70dc898 | 208 | mips-nat.c |
eeadf5c2 RP |
209 | mips-pinsn.c |
210 | mips-tdep.c | |
c2d751d5 | 211 | mipsm3-nat.c |
2fe3b329 | 212 | mipsv4-nat.c |
eeadf5c2 | 213 | mipsread.c |
2f1c04d1 | 214 | monitor.h |
25ca0dfc | 215 | monitor.c |
eeadf5c2 RP |
216 | news-xdep.c |
217 | nindy-share | |
218 | nindy-tdep.c | |
bbc34049 | 219 | nlm |
db85f523 | 220 | nlmread.c |
eeadf5c2 | 221 | ns32k-pinsn.c |
c2d751d5 | 222 | ns32km3-nat.c |
a1f596f4 | 223 | objfiles.c |
5e2e79f8 | 224 | objfiles.h |
25ca0dfc | 225 | op50-rom.c |
25200748 | 226 | os9kread.c |
cef4c2e7 | 227 | osfsolib.c |
56d921a8 JG |
228 | parse.c |
229 | parser-defs.h | |
7e258d18 | 230 | partial-stab.h |
eeadf5c2 | 231 | printcmd.c |
6fccdaf4 | 232 | procfs.c |
c6889f63 | 233 | ptx4-nat.c |
eeadf5c2 RP |
234 | pyr-pinsn.c |
235 | pyr-tdep.c | |
236 | pyr-xdep.c | |
237 | regex.c | |
238 | regex.h | |
239 | rem-multi.shar | |
1111151a | 240 | remote-adapt.c |
203a8d54 | 241 | remote-bug.c |
a0b28275 | 242 | remote-e7000.c |
eeadf5c2 | 243 | remote-eb.c |
91c87211 | 244 | remote-es.c |
d93b79d9 | 245 | remote-hms.c |
c2a0f1cb | 246 | remote-mips.c |
1111151a | 247 | remote-mm.c |
c033ec17 | 248 | remote-mon.c |
eeadf5c2 | 249 | remote-nindy.c |
25200748 | 250 | remote-os9k.c |
399290be | 251 | remote-pa.c |
ec25d19b | 252 | remote-sim.c |
40b92220 | 253 | remote-sim.h |
91c87211 | 254 | remote-st.c |
e4dd52dd | 255 | remote-udi.c |
3283eab3 JK |
256 | remote-utils.c |
257 | remote-utils.h | |
eeadf5c2 | 258 | remote-vx.c |
2aedd91e | 259 | remote-z8k.c |
eeadf5c2 | 260 | remote.c |
dc48694c | 261 | rs6000-nat.c |
6373dbe3 JG |
262 | rs6000-pinsn.c |
263 | rs6000-tdep.c | |
eeadf5c2 | 264 | saber.suppress |
55679787 | 265 | ser-e7kpc.c |
ddce75e0 | 266 | ser-go32.c |
4d551aa3 | 267 | ser-tcp.c |
e8a5f0ed SG |
268 | ser-unix.c |
269 | serial.c | |
ddce75e0 | 270 | serial.h |
9faacb92 | 271 | sh-tdep.c |
eeadf5c2 | 272 | signals.h |
eeadf5c2 | 273 | solib.c |
a1f596f4 | 274 | solib.h |
bfe2f12b | 275 | somread.c |
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 JG |
324 | xcoffexec.c |
325 | xcoffread.c | |
1eeba686 PB |
326 | xcoffsolib.c |
327 | xcoffsolib.h | |
2aedd91e | 328 | z8k-tdep.c |
eeadf5c2 | 329 | |
87756e15 | 330 | |
f747d259 | 331 | # Things which are explicitly *not* kept, for now. |
743b663c FF |
332 | # energize - Part of Lucid support. |
333 | # energize-patches - Part of Lucid support. | |
334 | # energize.c - Part of Lucid support. | |
335 | # energize.h - Part of Lucid support. | |
2b577349 JG |
336 | # remote-sa.sparc.c - Remote target for a standalone SPARC, using |
337 | # the FORTH console ROMs. We never got the paperwork | |
338 | # straight, since Sun's lawyers messed with the | |
339 | # FSF contract and RMS didn't accept the changes. | |
340 | # Written at SunLabs. | |
743b663c FF |
341 | # state.c - Not used at the moment, keep for reference (fnf) |
342 | # state.h - Not used at the moment, keep for reference (fnf) | |
2b577349 JG |
343 | # tests - Old test programs for GDB, pre-gdbtest and pre- |
344 | # DejaGnu. | |
f747d259 | 345 | |
87756e15 RP |
346 | Things-to-lose: |
347 | ||
87756e15 RP |
348 | energize |
349 | energize-patches | |
350 | energize.c | |
351 | energize.h | |
87756e15 RP |
352 | remote-sa.sparc.c |
353 | state.c | |
354 | state.h | |
355 | tests | |
356 | ||
eeadf5c2 RP |
357 | Do-last: |
358 | ||
d1bcda67 SS |
359 | echo Removing traces of \"mpw\"... |
360 | ||
361 | # Don't try to clean directories here, as the 'mv' command will fail. | |
362 | # Also, grep fails on NFS mounted directories. | |
363 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
364 | for i in * ; do | |
365 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
366 | echo Keeping mpw stuff in $i | |
367 | fi | |
368 | done | |
369 | else | |
370 | for i in * ; do | |
371 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
372 | echo Removing traces of \"mpw\" out of $i... | |
373 | cp $i new | |
374 | sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new | |
375 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
376 | echo Caching $i in .Recover... | |
377 | mv $i .Recover | |
378 | fi | |
379 | mv new $i | |
380 | fi | |
381 | done | |
382 | fi | |
383 | ||
98c0e047 JL |
384 | echo Removing traces of \"hpread\"... |
385 | ||
386 | # Don't try to clean directories here, as the 'mv' command will fail. | |
387 | # Also, grep fails on NFS mounted directories. | |
388 | if ( echo $* | grep keep\-hpread > /dev/null ) ; then | |
389 | for i in * ; do | |
390 | if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then | |
391 | echo Keeping hpread stuff in $i | |
392 | fi | |
393 | done | |
394 | else | |
395 | for i in * ; do | |
396 | if test ! -d $i && (grep sanitize-hpread $i > /dev/null) ; then | |
397 | echo Removing traces of \"hpread\" out of $i... | |
398 | cp $i new | |
399 | sed '/start\-sanitize\-hpread/,/end-\sanitize\-hpread/d' < $i > new | |
400 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
401 | echo Caching $i in .Recover... | |
402 | mv $i .Recover | |
403 | fi | |
404 | mv new $i | |
405 | fi | |
406 | done | |
407 | fi | |
408 | ||
409 | ||
eeadf5c2 | 410 | # End of file. |