]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/mips/.Sanitize
* configure.tgt: Set gdb_target to r5900.
[thirdparty/binutils-gdb.git] / gdb / config / mips / .Sanitize
1 # .Sanitize for devo/gdb/config/mips.
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 tx19_files="tm-tx19.h tm-tx19l.h tx19.mt tx19l.mt"
19
20 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
21 keep_these_too="${tx19_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${tx19_files}
24 fi
25 else
26 lose_these_too="${tx19_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${tx19_files}
29 fi
30 fi
31
32 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
33 keep_these_too="tm-r5900.h r5900.mt ${keep_these_too}"
34 else
35 lose_these_too="tm-r5900.h r5900.mt ${lose_these_too}"
36 fi
37
38 # All files listed between the "Things-to-keep:" line and the
39 # "Files-to-sed:" line will be kept. All other files will be removed.
40 # Directories listed in this section will have their own Sanitize
41 # called. Directories not listed will be removed in their entirety
42 # with rm -rf.
43
44 Things-to-keep:
45
46 bigmips.mt
47 bigmips64.mt
48 decstation.mh
49 decstation.mt
50 embed.mt
51 embed64.mt
52 embedl.mt
53 embedl64.mt
54 irix3.mh
55 irix3.mt
56 irix4.mh
57 irix5.mh
58 irix5.mt
59 littlemips.mh
60 littlemips.mt
61 mipsel64.mt
62 mipsm3.mh
63 mipsm3.mt
64 mipsv4.mh
65 mipsv4.mt
66 news-mips.mh
67 nm-irix3.h
68 nm-irix4.h
69 nm-irix5.h
70 nm-mips.h
71 nm-news-mips.h
72 nm-riscos.h
73 riscos.mh
74 tm-bigmips.h
75 tm-bigmips64.h
76 tm-embed.h
77 tm-embed64.h
78 tm-embedl.h
79 tm-embedl64.h
80 tm-irix3.h
81 tm-irix5.h
82 tm-mips.h
83 tm-mips64.h
84 tm-mipsm3.h
85 tm-mipsv4.h
86 tm-tx39.h
87 tm-tx39l.h
88 tm-vr4300.h
89 tm-vr4300el.h
90 tm-vr5000.h
91 tm-vr5000el.h
92 tm-vxmips.h
93 tx39.mt
94 tx39l.mt
95 vr4300.mt
96 vr4300el.mt
97 vr5000.mt
98 vr5000el.mt
99 vxmips.mt
100 xm-irix3.h
101 xm-irix4.h
102 xm-irix5.h
103 xm-mips.h
104 xm-mipsm3.h
105 xm-mipsv4.h
106 xm-news-mips.h
107 xm-riscos.h
108
109 Things-to-lose:
110 r3900.mt
111 r3900l.mt
112 tm-r3900.h
113 tm-r3900l.h
114
115 Do-last:
116
117 if ( echo $* | grep keep\-gm > /dev/null ) ; then
118 for i in * ; do
119 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
120 if [ -n "${verbose}" ] ; then
121 echo Keeping gm stuff in $i
122 fi
123 fi
124 done
125 else
126 for i in * ; do
127 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
128 if [ -n "${verbose}" ] ; then
129 echo Removing traces of \"gm\" from $i...
130 fi
131 cp $i new
132 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
133 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
134 if [ -n "${verbose}" ] ; then
135 echo Caching $i in .Recover...
136 fi
137 mv $i .Recover
138 fi
139 mv new $i
140 fi
141 done
142 fi
143
144 # End of file.