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