]>
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 | ||
d3d75ec9 SS |
32 | gdbtk_files="gdbtk.c gdbtk.tcl" |
33 | ||
34 | if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then | |
35 | keep_these_too="${gdbtk_files} ${keep_these_too}" | |
36 | if [ -n "${verbose}" ] ; then | |
37 | echo Keeping ${gdbtk_files} | |
38 | fi | |
39 | else | |
40 | lose_these_too="${gdbtk_files} ${lose_these_too}" | |
41 | if [ -n "${verbose}" ] ; then | |
42 | echo Deleting ${gdbtk_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 |
73cb6167 | 62 | ChangeLog-94 |
bdf3621b | 63 | Makefile.in |
ddce75e0 | 64 | NEWS |
eeadf5c2 RP |
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 |
a1f596f4 FF |
149 | gdbtypes.c |
150 | gdbtypes.h | |
ae0ea72e | 151 | go32-xdep.c |
eeadf5c2 RP |
152 | gould-pinsn.c |
153 | gould-xdep.c | |
0a8ed751 | 154 | h8300-tdep.c |
5cd0940a | 155 | h8500-tdep.c |
b1de302a | 156 | hp300ux-nat.c |
76b731f9 | 157 | hppa-pinsn.c |
66a1aa07 | 158 | hppa-tdep.c |
ca048722 | 159 | hppab-nat.c |
ca048722 | 160 | hppah-nat.c |
2848f793 | 161 | hpread.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 |
8c875c1c | 219 | nlmstub.def |
eeadf5c2 | 220 | ns32k-pinsn.c |
c2d751d5 | 221 | ns32km3-nat.c |
a1f596f4 | 222 | objfiles.c |
5e2e79f8 | 223 | objfiles.h |
25ca0dfc | 224 | op50-rom.c |
25200748 | 225 | os9kread.c |
cef4c2e7 | 226 | osfsolib.c |
56d921a8 JG |
227 | parse.c |
228 | parser-defs.h | |
7e258d18 | 229 | partial-stab.h |
eeadf5c2 | 230 | printcmd.c |
6fccdaf4 | 231 | procfs.c |
c6889f63 | 232 | ptx4-nat.c |
eeadf5c2 RP |
233 | pyr-pinsn.c |
234 | pyr-tdep.c | |
235 | pyr-xdep.c | |
236 | regex.c | |
237 | regex.h | |
238 | rem-multi.shar | |
1111151a | 239 | remote-adapt.c |
203a8d54 | 240 | remote-bug.c |
a0b28275 | 241 | remote-e7000.c |
eeadf5c2 | 242 | remote-eb.c |
91c87211 | 243 | remote-es.c |
93584146 | 244 | remote-est.c |
d93b79d9 | 245 | remote-hms.c |
c2a0f1cb | 246 | remote-mips.c |
1111151a | 247 | remote-mm.c |
eeadf5c2 | 248 | remote-nindy.c |
25200748 | 249 | remote-os9k.c |
399290be | 250 | remote-pa.c |
ec25d19b | 251 | remote-sim.c |
40b92220 | 252 | remote-sim.h |
91c87211 | 253 | remote-st.c |
e4dd52dd | 254 | remote-udi.c |
3283eab3 JK |
255 | remote-utils.c |
256 | remote-utils.h | |
eeadf5c2 | 257 | remote-vx.c |
2aedd91e | 258 | remote-z8k.c |
eeadf5c2 | 259 | remote.c |
dc48694c | 260 | rs6000-nat.c |
6373dbe3 JG |
261 | rs6000-pinsn.c |
262 | rs6000-tdep.c | |
fb9f8033 | 263 | rom68k-rom.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 |
bb140953 JL |
276 | somsolib.c |
277 | somsolib.h | |
eeadf5c2 | 278 | source.c |
8c16485e | 279 | sp64-tdep.c |
dfc82617 | 280 | sparc-nat.c |
eeadf5c2 | 281 | sparc-pinsn.c |
c9715956 | 282 | sparc-stub.c |
eeadf5c2 | 283 | sparc-tdep.c |
2b14c195 KH |
284 | sparcl-stub.c |
285 | sparcl-tdep.c | |
a96c3444 | 286 | sparclite |
d07734e3 FF |
287 | stabsread.c |
288 | stabsread.h | |
eeadf5c2 RP |
289 | stack.c |
290 | standalone.c | |
1e6f592d | 291 | stop-gdb.c |
eeadf5c2 | 292 | stuff.c |
dc48694c | 293 | sun3-nat.c |
61bbb1c2 | 294 | sun386-nat.c |
eeadf5c2 RP |
295 | symfile.c |
296 | symfile.h | |
d39d83c1 | 297 | symm-nat.c |
203a8d54 | 298 | symm-tdep.c |
eeadf5c2 RP |
299 | symmisc.c |
300 | symtab.c | |
301 | symtab.h | |
eeadf5c2 RP |
302 | tahoe-pinsn.c |
303 | target.c | |
304 | target.h | |
eeadf5c2 | 305 | terminal.h |
a2df03aa | 306 | testsuite |
6a21c756 SG |
307 | thread.c |
308 | thread.h | |
172559ec JK |
309 | top.c |
310 | top.h | |
a8a69e63 FF |
311 | typeprint.c |
312 | typeprint.h | |
6bf98ac0 | 313 | ultra3-nat.c |
1111151a | 314 | ultra3-xdep.c |
eeadf5c2 RP |
315 | umax-xdep.c |
316 | utils.c | |
317 | valarith.c | |
318 | valops.c | |
319 | valprint.c | |
a8a69e63 | 320 | valprint.h |
eeadf5c2 RP |
321 | value.h |
322 | values.c | |
eeadf5c2 RP |
323 | vax-pinsn.c |
324 | vx-share | |
d723ade7 | 325 | w65-tdep.c |
25ca0dfc | 326 | w89k-rom.c |
6373dbe3 | 327 | xcoffread.c |
1eeba686 PB |
328 | xcoffsolib.c |
329 | xcoffsolib.h | |
2aedd91e | 330 | z8k-tdep.c |
eeadf5c2 | 331 | |
87756e15 | 332 | |
f747d259 | 333 | # Things which are explicitly *not* kept, for now. |
743b663c FF |
334 | # energize - Part of Lucid support. |
335 | # energize-patches - Part of Lucid support. | |
336 | # energize.c - Part of Lucid support. | |
337 | # energize.h - Part of Lucid support. | |
2b577349 JG |
338 | # remote-sa.sparc.c - Remote target for a standalone SPARC, using |
339 | # the FORTH console ROMs. We never got the paperwork | |
340 | # straight, since Sun's lawyers messed with the | |
341 | # FSF contract and RMS didn't accept the changes. | |
342 | # Written at SunLabs. | |
743b663c FF |
343 | # state.c - Not used at the moment, keep for reference (fnf) |
344 | # state.h - Not used at the moment, keep for reference (fnf) | |
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 | |
87756e15 | 355 | |
eeadf5c2 RP |
356 | Do-last: |
357 | ||
d1bcda67 SS |
358 | echo Removing traces of \"mpw\"... |
359 | ||
360 | # Don't try to clean directories here, as the 'mv' command will fail. | |
361 | # Also, grep fails on NFS mounted directories. | |
362 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
363 | for i in * ; do | |
364 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
365 | echo Keeping mpw stuff in $i | |
366 | fi | |
367 | done | |
368 | else | |
369 | for i in * ; do | |
370 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
371 | echo Removing traces of \"mpw\" out of $i... | |
372 | cp $i new | |
373 | sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new | |
374 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
375 | echo Caching $i in .Recover... | |
376 | mv $i .Recover | |
377 | fi | |
378 | mv new $i | |
379 | fi | |
380 | done | |
381 | fi | |
382 | ||
d3d75ec9 SS |
383 | echo Catering to RMS by removing traces of \"gdbtk\"... |
384 | ||
385 | # Don't try to clean directories here, as the 'mv' command will fail. | |
386 | # Also, grep fails on NFS mounted directories. | |
387 | if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then | |
388 | for i in * ; do | |
389 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
390 | echo Keeping gdbtk stuff in $i | |
391 | fi | |
392 | done | |
393 | else | |
394 | for i in * ; do | |
395 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
396 | echo Removing traces of \"gdbtk\" out of $i... | |
397 | cp $i new | |
398 | sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new | |
399 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
400 | echo Caching $i in .Recover... | |
401 | mv $i .Recover | |
402 | fi | |
403 | mv new $i | |
404 | fi | |
405 | done | |
406 | fi | |
407 | ||
408 | r16_files="configure.in" | |
03c4ce2f MT |
409 | |
410 | if ( echo $* | grep keep\-r16 > /dev/null ) ; then | |
411 | for i in $r16_files ; do | |
412 | if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then | |
413 | if [ -n "${verbose}" ] ; then | |
414 | echo Keeping r16 stuff in $i | |
415 | fi | |
416 | fi | |
417 | done | |
418 | else | |
419 | for i in $r16_files ; do | |
420 | if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then | |
421 | if [ -n "${verbose}" ] ; then | |
422 | echo Removing traces of \"r16\" from $i... | |
423 | fi | |
424 | cp $i new | |
425 | sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new | |
426 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
427 | if [ -n "${verbose}" ] ; then | |
428 | echo Caching $i in .Recover... | |
429 | fi | |
430 | mv $i .Recover | |
431 | fi | |
432 | mv new $i | |
433 | fi | |
434 | done | |
435 | fi | |
436 | ||
437 | for i in * ; do | |
438 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
439 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
440 | fi | |
441 | done | |
442 | ||
443 | # | |
eeadf5c2 | 444 | # End of file. |