Since d10v is public now, remove all sanitization statements
[deliverable/binutils-gdb.git] / include / opcode / .Sanitize
1 # .Sanitize for devo/include/opcode.
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 arc_files="arc.h"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 else
23 lose_these_too="${arc_files} ${lose_these_too}"
24 fi
25
26 d10v_files="d10v.h"
27
28 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32 fi
33
34 d30v_files="d30v.h"
35
36 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
37 keep_these_too="${d30v_files} ${keep_these_too}"
38 else
39 lose_these_too="${d30v_files} ${lose_these_too}"
40 fi
41
42 v850_files="v850.h"
43
44 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
45 keep_these_too="${v850_files} ${keep_these_too}"
46 else
47 lose_these_too="${v850_files} ${lose_these_too}"
48 fi
49
50 tic80_files="tic80.h"
51
52 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
53 keep_these_too="${tic80_files} ${keep_these_too}"
54 else
55 lose_these_too="${tic80_files} ${lose_these_too}"
56 fi
57
58
59 # All files listed between the "Things-to-keep:" line and the
60 # "Files-to-sed:" line will be kept. All other files will be removed.
61 # Directories listed in this section will have their own Sanitize
62 # called. Directories not listed will be removed in their entirety
63 # with rm -rf.
64
65 Things-to-keep:
66
67 ChangeLog
68 a29k.h
69 alpha.h
70 arm.h
71 convex.h
72 h8300.h
73 hppa.h
74 i386.h
75 i860.h
76 i960.h
77 m68k.h
78 m88k.h
79 mips.h
80 mn10200.h
81 mn10300.h
82 np1.h
83 ns32k.h
84 pn.h
85 ppc.h
86 pyr.h
87 sparc.h
88 tahoe.h
89 vax.h
90
91 Things-to-lose:
92
93 Do-last:
94
95 arc_files="ChangeLog"
96 if ( echo $* | grep keep\-arc > /dev/null ) ; then
97 for i in $arc_files ; do
98 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
99 if [ -n "${verbose}" ] ; then
100 echo Keeping arc stuff in $i
101 fi
102 fi
103 done
104 else
105 for i in $arc_files ; do
106 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
107 if [ -n "${verbose}" ] ; then
108 echo Removing traces of \"arc\" from $i...
109 fi
110 cp $i new
111 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
112 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
113 if [ -n "${verbose}" ] ; then
114 echo Caching $i in .Recover...
115 fi
116 mv $i .Recover
117 fi
118 mv new $i
119 fi
120 done
121 fi
122
123
124 d30v_files="ChangeLog"
125 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
126 for i in $d30v_files ; do
127 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
128 if [ -n "${verbose}" ] ; then
129 echo Keeping d30v stuff in $i
130 fi
131 fi
132 done
133 else
134 for i in $d30v_files ; do
135 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
136 if [ -n "${verbose}" ] ; then
137 echo Removing traces of \"d30v\" from $i...
138 fi
139 cp $i new
140 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
141 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
142 if [ -n "${verbose}" ] ; then
143 echo Caching $i in .Recover...
144 fi
145 mv $i .Recover
146 fi
147 mv new $i
148 fi
149 done
150 fi
151
152 v850_files="ChangeLog"
153 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
154 for i in $v850_files ; do
155 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
156 if [ -n "${verbose}" ] ; then
157 echo Keeping v850 stuff in $i
158 fi
159 fi
160 done
161 else
162 for i in $v850_files ; do
163 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
164 if [ -n "${verbose}" ] ; then
165 echo Removing traces of \"v850\" from $i...
166 fi
167 cp $i new
168 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
169 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
170 if [ -n "${verbose}" ] ; then
171 echo Caching $i in .Recover...
172 fi
173 mv $i .Recover
174 fi
175 mv new $i
176 fi
177 done
178 fi
179
180 r5900_files="ChangeLog mips.h"
181 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
182 for i in $r5900_files ; do
183 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
184 if [ -n "${verbose}" ] ; then
185 echo Keeping r5900 stuff in $i
186 fi
187 fi
188 done
189 else
190 for i in $r5900_files ; do
191 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
192 if [ -n "${verbose}" ] ; then
193 echo Removing traces of \"r5900\" from $i...
194 fi
195 cp $i new
196 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
197 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
198 if [ -n "${verbose}" ] ; then
199 echo Caching $i in .Recover...
200 fi
201 mv $i .Recover
202 fi
203 mv new $i
204 fi
205 done
206 fi
207
208 tic80_files="ChangeLog"
209 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
210 for i in $tic80_files ; do
211 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
212 if [ -n "${verbose}" ] ; then
213 echo Keeping tic80 stuff in $i
214 fi
215 fi
216 done
217 else
218 for i in $tic80_files ; do
219 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
220 if [ -n "${verbose}" ] ; then
221 echo Removing traces of \"tic80\" from $i...
222 fi
223 cp $i new
224 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
225 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
226 if [ -n "${verbose}" ] ; then
227 echo Caching $i in .Recover...
228 fi
229 mv $i .Recover
230 fi
231 mv new $i
232 fi
233 done
234 fi
235
236
237 for i in * ; do
238 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
239 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
240 fi
241 done
242
243 # End of file.
This page took 0.040674 seconds and 5 git commands to generate.