Tweak list of files to keep.
[binutils-gdb.git] / gdb / .Sanitize
1 # .Sanitize for devo/gdb.
2
3 # Each directory to survive it's way into a release will need a file
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
14 # done in this
15
16 Do-first:
17
18 if ( echo $* | grep keep\-chill > /dev/null ) ; then
19 keep_these_too="ch-exp.y ch-lang.c ch-lang.h ch-typeprint.c ch-valprint.c"
20 fi
21
22 # All files listed between the "Things-to-keep:" line and the
23 # "Files-to-sed:" line will be kept. All other files will be removed.
24 # Directories listed in this section will have their own Sanitize
25 # called. Directories not listed will be removed in their entirety
26 # with rm -rf.
27
28 Things-to-keep:
29
30 .gdbinit
31 29k-share
32 COPYING
33 ChangeLog
34 ChangeLog-3.x
35 ChangeLog-9091
36 Makefile.in
37 NEWS
38 Projects
39 README
40 TODO
41 a68v-nat.c
42 alldeps.mak
43 alloca.c
44 altos-xdep.c
45 am29k-pinsn.c
46 am29k-tdep.c
47 arm-convert.s
48 arm-pinsn.c
49 arm-tdep.c
50 arm-xdep.c
51 blockframe.c
52 breakpoint.c
53 breakpoint.h
54 buildsym.c
55 buildsym.h
56 c-exp.y
57 c-lang.c
58 c-lang.h
59 c-typeprint.c
60 c-valprint.c
61 call-cmds.h
62 coffread.c
63 command.c
64 command.h
65 complaints.c
66 complaints.h
67 config
68 configure.in
69 convex-pinsn.c
70 convex-tdep.c
71 convex-xdep.c
72 copying.awk
73 copying.c
74 core.c
75 coredep.c
76 corelow.c
77 cp-valprint.c
78 createtags
79 dbxread.c
80 defs.h
81 demangle.c
82 depend
83 doc
84 dwarfread.c
85 elfread.c
86 environ.c
87 environ.h
88 eval.c
89 exec.c
90 expprint.c
91 expression.h
92 findvar.c
93 fork-child.c
94 frame.h
95 gcc.patch
96 gdb-stabs.h
97 gdb.1
98 gdbcmd.h
99 gdbcore.h
100 gdbtypes.c
101 gdbtypes.h
102 go32-xdep.c
103 gould-pinsn.c
104 gould-xdep.c
105 h8300-tdep.c
106 hp300ux-nat.c
107 hppa-pinsn.c
108 hppab-core.c
109 hppab-nat.c
110 hppab-tdep.c
111 hppah-nat.c
112 hppah-tdep.c
113 i386-pinsn.c
114 i386-stub.c
115 i386-tdep.c
116 i386b-nat.c
117 i386mach-nat.c
118 i386v-nat.c
119 i386v4-nat.c
120 i387-tdep.c
121 i960-pinsn.c
122 i960-tdep.c
123 infcmd.c
124 inferior.h
125 inflow.c
126 infptrace.c
127 infrun.c
128 inftarg.c
129 irix4-nat.c
130 kdb-start.c
131 language.c
132 language.h
133 m2-exp.y
134 m2-lang.c
135 m2-lang.h
136 m2-typeprint.c
137 m2-valprint.c
138 m68k-pinsn.c
139 m68k-stub.c
140 m68k-tdep.c
141 m88k-nat.c
142 m88k-pinsn.c
143 m88k-tdep.c
144 main.c
145 maint.c
146 mem-break.c
147 minimon.h
148 minsyms.c
149 mips-nat.c
150 mips-pinsn.c
151 mips-tdep.c
152 mipsread.c
153 munch
154 news-xdep.c
155 nindy-share
156 nindy-tdep.c
157 ns32k-opcode.h
158 ns32k-pinsn.c
159 objfiles.c
160 objfiles.h
161 paread.c
162 parse.c
163 parser-defs.h
164 partial-stab.h
165 printcmd.c
166 procfs.c
167 putenv.c
168 pyr-pinsn.c
169 pyr-tdep.c
170 pyr-xdep.c
171 regex.c
172 regex.h
173 rem-multi.shar
174 remote-adapt.c
175 remote-eb.c
176 remote-es1800.c
177 remote-hms.c
178 remote-mips.c
179 remote-mm.c
180 remote-nindy.c
181 remote-sim.c
182 remote-st2000.c
183 remote-udi.c
184 remote-vx.c
185 remote-z8k.c
186 remote.c
187 rs6000-nat.c
188 rs6000-pinsn.c
189 rs6000-tdep.c
190 saber.suppress
191 ser-bsd.c
192 ser-go32.c
193 ser-termios.c
194 serial.h
195 signals.h
196 solib.c
197 solib.h
198 source.c
199 sparc-nat.c
200 sparc-pinsn.c
201 sparc-stub.c
202 sparc-tdep.c
203 sparclite
204 stabsread.c
205 stabsread.h
206 stack.c
207 standalone.c
208 stuff.c
209 sun3-nat.c
210 sun386-nat.c
211 symfile.c
212 symfile.h
213 symm-tdep.c
214 symm-xdep.c
215 symmisc.c
216 symtab.c
217 symtab.h
218 tahoe-pinsn.c
219 target.c
220 target.h
221 terminal.h
222 testsuite
223 typeprint.c
224 typeprint.h
225 ultra3-nat.c
226 ultra3-xdep.c
227 umax-xdep.c
228 utils.c
229 valarith.c
230 valops.c
231 valprint.c
232 valprint.h
233 value.h
234 values.c
235 vax-pinsn.c
236 vx-share
237 xcoffexec.c
238 xcoffread.c
239 xcoffsolib.c
240 xcoffsolib.h
241 z8k-tdep.c
242
243 Do-last:
244
245 echo Thawing away the \"chill\"...
246
247 # Don't try to clean directories here, as the 'mv' command will fail.
248 # Also, grep fails on NFS mounted directories.
249 if ( echo $* | grep keep\-chill > /dev/null ) ; then
250 for i in * ; do
251 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
252 echo Keeping chill stuff in $i
253 fi
254 done
255 else
256 for i in * ; do
257 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
258 echo Thawing the \"chill\" out of $i...
259 cp $i new
260 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
261 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
262 echo Caching $i in .Recover...
263 mv $i .Recover
264 fi
265 mv new $i
266 fi
267 done
268 echo Thawing the \"chill\" out of Makefile.in...
269 cp Makefile.in new
270 sed -e 's/$(srcdir)\/ch-exp.y//g' \
271 -e 's/${srcdir}\/ch-exp.y//g' \
272 -e 's/ch-exp.y//g' \
273 -e 's/ch-exp.tab.c//g' \
274 -e 's/ch-exp.tab.o//g' \
275 -e 's/ch-lang.h//g' \
276 -e 's/ch-lang.c//g' \
277 -e 's/ch-lang.o//g' \
278 -e 's/ch-typeprint.c//g' \
279 -e 's/ch-typeprint.o//g' \
280 -e 's/ch-valprint.c//g' \
281 -e 's/ch-valprint.o//g' \
282 < Makefile.in > new
283 if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
284 echo Caching Makefile.in in .Recover...
285 mv Makefile.in .Recover
286 fi
287 mv new Makefile.in
288 fi
289
290 # End of file.