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