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