Fix sed'iting of files with gdbtk stuff in them
[deliverable/binutils-gdb.git] / gdb / .Sanitize
1 # .Sanitize for devo/gdb.
2
3 # Each directory to survive its 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 directory.
15
16 Do-first:
17
18 arc_files="arc-tdep.c remote-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${arc_files}
24 fi
25 else
26 lose_these_too="${arc_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${arc_files}
29 fi
30 fi
31
32 # mswin gdb is not really gdbtk, but is close enough for now.
33
34 gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl mswin"
35
36 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
37 lose_these_too="${gdbtk_files} ${lose_these_too}"
38 if [ -n "${verbose}" ] ; then
39 echo Deleting ${gdbtk_files}
40 fi
41 else
42 keep_these_too="${gdbtk_files} ${keep_these_too}"
43 if [ -n "${verbose}" ] ; then
44 echo Keeping ${gdbtk_files}
45 fi
46 fi
47
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
57 29k-share
58 COPYING
59 ChangeLog
60 ChangeLog-3.x
61 ChangeLog-9091
62 ChangeLog-92
63 ChangeLog-93
64 ChangeLog-94
65 Makefile.in
66 NEWS
67 README
68 TODO
69 a29k-tdep.c
70 a68v-nat.c
71 alpha-nat.c
72 alpha-tdep.c
73 altos-xdep.c
74 annotate.c
75 annotate.h
76 arm-convert.s
77 arm-tdep.c
78 arm-xdep.c
79 array-rom.c
80 blockframe.c
81 breakpoint.c
82 breakpoint.h
83 buildsym.c
84 buildsym.h
85 c-exp.y
86 c-lang.c
87 c-lang.h
88 c-typeprint.c
89 c-valprint.c
90 call-cmds.h
91 ch-exp.y
92 ch-lang.c
93 ch-lang.h
94 ch-typeprint.c
95 ch-valprint.c
96 coff-solib.c
97 coff-solib.h
98 coffread.c
99 command.c
100 command.h
101 complaints.c
102 complaints.h
103 config
104 configure.in
105 convex-tdep.c
106 convex-xdep.c
107 copying.awk
108 copying.c
109 core-sol2.c
110 core-svr4.c
111 core.c
112 coredep.c
113 corelow.c
114 cp-valprint.c
115 cpu32bug-rom.c
116 cxux-nat.c
117 dbxread.c
118 dcache.c
119 dcache.h
120 defs.h
121 delta68-nat.c
122 demangle.c
123 doc
124 dpx2-nat.c
125 dst.h
126 dstread.c
127 dwarfread.c
128 elfread.c
129 environ.c
130 environ.h
131 eval.c
132 exec.c
133 expprint.c
134 expression.h
135 f-exp.y
136 f-lang.c
137 f-lang.h
138 f-typeprint.c
139 f-valprint.c
140 findvar.c
141 fork-child.c
142 frame.h
143 gcc.patch
144 gdb-stabs.h
145 gdb.1
146 gdb.gdb
147 gdba.el
148 gdbcmd.h
149 gdbcore.h
150 gdbserver
151 gdbtypes.c
152 gdbtypes.h
153 go32-xdep.c
154 gould-tdep.c
155 gould-xdep.c
156 h8300-tdep.c
157 h8500-tdep.c
158 hp300ux-nat.c
159 hppa-tdep.c
160 hppab-nat.c
161 hppah-nat.c
162 hpread.c
163 i386-stub.c
164 i386-tdep.c
165 i386aix-nat.c
166 i386b-nat.c
167 i386ly-tdep.c
168 i386m3-nat.c
169 i386mach-nat.c
170 i386v-nat.c
171 i386v4-nat.c
172 i387-tdep.c
173 i960-tdep.c
174 infcmd.c
175 inferior.h
176 inflow.c
177 infptrace.c
178 infrun.c
179 inftarg.c
180 irix4-nat.c
181 irix5-nat.c
182 isi-xdep.c
183 kdb-start.c
184 language.c
185 language.h
186 lynx-nat.c
187 m2-exp.y
188 m2-lang.c
189 m2-lang.h
190 m2-typeprint.c
191 m2-valprint.c
192 m3-nat.c
193 m68k-stub.c
194 m68k-tdep.c
195 m88k-nat.c
196 m88k-tdep.c
197 mac-defs.h
198 mac-xdep.c
199 macgdb.r
200 main.c
201 maint.c
202 mdebugread.c
203 mem-break.c
204 minimon.h
205 minsyms.c
206 mips-nat.c
207 mips-tdep.c
208 mipsm3-nat.c
209 mipsv4-nat.c
210 mipsread.c
211 monitor.h
212 monitor.c
213 mpw-config.in
214 mpw-make.in
215 news-xdep.c
216 nindy-share
217 nindy-tdep.c
218 nlm
219 nlmread.c
220 ns32k-tdep.c
221 ns32km3-nat.c
222 objfiles.c
223 objfiles.h
224 op50-rom.c
225 os9kread.c
226 osfsolib.c
227 parse.c
228 parser-defs.h
229 partial-stab.h
230 printcmd.c
231 procfs.c
232 ptx4-nat.c
233 pyr-tdep.c
234 pyr-xdep.c
235 regex.c
236 regex.h
237 remote-adapt.c
238 remote-array.c
239 remote-bug.c
240 remote-e7000.c
241 remote-eb.c
242 remote-es.c
243 remote-est.c
244 remote-hms.c
245 remote-mips.c
246 remote-mm.c
247 remote-nindy.c
248 remote-nrom.c
249 remote-os9k.c
250 remote-pa.c
251 remote-sim.c
252 remote-sim.h
253 remote-st.c
254 remote-udi.c
255 remote-utils.c
256 remote-utils.h
257 remote-vx.c
258 remote-vx29k.c
259 remote-vx68.c
260 remote-vx960.c
261 remote-vxmips.c
262 remote-vxsparc.c
263 remote-z8k.c
264 remote.c
265 rs6000-nat.c
266 rs6000-tdep.c
267 rom68k-rom.c
268 saber.suppress
269 ser-e7kpc.c
270 ser-go32.c
271 ser-mac.c
272 ser-tcp.c
273 ser-unix.c
274 serial.c
275 serial.h
276 sh-tdep.c
277 signals.h
278 solib.c
279 solib.h
280 somread.c
281 somsolib.c
282 somsolib.h
283 source.c
284 sparc-nat.c
285 sparc-stub.c
286 sparc-tdep.c
287 sparcl-stub.c
288 sparcl-tdep.c
289 sparclite
290 stabsread.c
291 stabsread.h
292 stack.c
293 standalone.c
294 stop-gdb.c
295 stuff.c
296 sun3-nat.c
297 sun386-nat.c
298 symfile.c
299 symfile.h
300 symm-nat.c
301 symm-tdep.c
302 symmisc.c
303 symtab.c
304 symtab.h
305 tahoe-tdep.c
306 target.c
307 target.h
308 terminal.h
309 testsuite
310 thread.c
311 thread.h
312 top.c
313 top.h
314 typeprint.c
315 typeprint.h
316 ultra3-nat.c
317 ultra3-xdep.c
318 umax-xdep.c
319 utils.c
320 valarith.c
321 valops.c
322 valprint.c
323 valprint.h
324 value.h
325 values.c
326 vax-tdep.c
327 vx-share
328 w65-tdep.c
329 w89k-rom.c
330 xcoffread.c
331 xcoffsolib.c
332 xcoffsolib.h
333 xmodem.c
334 xmodem.h
335 z8k-tdep.c
336
337
338 # Things which are explicitly *not* kept, for now.
339 # energize - Part of Lucid support.
340 # energize-patches - Part of Lucid support.
341 # energize.c - Part of Lucid support.
342 # energize.h - Part of Lucid support.
343 # remote-sa.sparc.c - Remote target for a standalone SPARC, using
344 # the FORTH console ROMs. We never got the paperwork
345 # straight, since Sun's lawyers messed with the
346 # FSF contract and RMS didn't accept the changes.
347 # Written at SunLabs.
348 # state.c - Not used at the moment, keep for reference (fnf)
349 # state.h - Not used at the moment, keep for reference (fnf)
350
351 Things-to-lose:
352
353 energize
354 energize-patches
355 energize.c
356 energize.h
357 remote-mon.c
358 remote-sa.sparc.c
359 ser-go32-para.c
360 state.c
361 state.h
362
363 Do-last:
364
365 # Don't try to clean directories here, as the 'mv' command will fail.
366 # Also, grep fails on NFS mounted directories.
367 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
368 echo Catering to RMS by removing traces of \"gdbtk\"...
369 for i in * ; do
370 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
371 echo Removing traces of \"gdbtk\" out of $i...
372 cp $i new
373 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/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 else
382 echo Leaving \"gdbtk\" in the sources...
383 for i in * ; do
384 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
385 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
386 cp $i new
387 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
388 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
389 echo Caching $i in .Recover...
390 mv $i .Recover
391 fi
392 mv new $i
393 fi
394 done
395 fi
396
397 r16_files="configure.in"
398
399 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
400 for i in $r16_files ; do
401 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
402 if [ -n "${verbose}" ] ; then
403 echo Keeping r16 stuff in $i
404 fi
405 fi
406 done
407 else
408 for i in $r16_files ; do
409 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
410 if [ -n "${verbose}" ] ; then
411 echo Removing traces of \"r16\" from $i...
412 fi
413 cp $i new
414 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
415 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
416 if [ -n "${verbose}" ] ; then
417 echo Caching $i in .Recover...
418 fi
419 mv $i .Recover
420 fi
421 mv new $i
422 fi
423 done
424 fi
425
426 arc_files="configure.in ChangeLog"
427
428 if ( echo $* | grep keep\-arc > /dev/null ) ; then
429 for i in $arc_files ; do
430 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
431 if [ -n "${verbose}" ] ; then
432 echo Keeping arc stuff in $i
433 fi
434 fi
435 done
436 else
437 for i in $arc_files ; do
438 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
439 if [ -n "${verbose}" ] ; then
440 echo Removing traces of \"arc\" from $i...
441 fi
442 cp $i new
443 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
444 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
445 if [ -n "${verbose}" ] ; then
446 echo Caching $i in .Recover...
447 fi
448 mv $i .Recover
449 fi
450 mv new $i
451 fi
452 done
453 fi
454
455 for i in * ; do
456 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
457 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
458 fi
459 done
460
461 #
462 # End of file.
This page took 0.052118 seconds and 5 git commands to generate.