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