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