Since d10v is public now, remove all sanitization statements
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
1 # .Sanitize for devo/opcodes.
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-dis.c arc-opc.c"
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-dis.c d10v-opc.c"
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-dis.c d30v-opc.c"
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-opc.c v850-dis.c"
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-opc.c tic80-dis.c"
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 Makefile.in
69 aclocal.m4
70 alpha-dis.c
71 alpha-opc.c
72 arm-dis.c
73 arm-opc.h
74 a29k-dis.c
75 config.in
76 configure
77 configure.bat
78 configure.in
79 dis-buf.c
80 disassemble.c
81 h8300-dis.c
82 h8500-dis.c
83 h8500-opc.h
84 hppa-dis.c
85 i386-dis.c
86 i960-dis.c
87 m68k-dis.c
88 m68k-opc.c
89 m88k-dis.c
90 makefile.vms
91 mips-dis.c
92 mips-opc.c
93 mips16-opc.c
94 mn10200-dis.c
95 mn10200-opc.c
96 mn10300-dis.c
97 mn10300-opc.c
98 mpw-config.in
99 mpw-make.sed
100 ns32k-dis.c
101 ppc-dis.c
102 ppc-opc.c
103 sh-opc.h
104 sh-dis.c
105 sparc-dis.c
106 sparc-opc.c
107 sysdep.h
108 w65-dis.c
109 w65-opc.h
110 z8k-dis.c
111 z8k-opc.h
112 z8kgen.c
113
114 Things-to-lose:
115
116 Do-last:
117
118 arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
119 if ( echo $* | grep keep\-arc > /dev/null ) ; then
120 for i in $arc_files ; do
121 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
122 if [ -n "${verbose}" ] ; then
123 echo Keeping arc stuff in $i
124 fi
125 fi
126 done
127 else
128 for i in $arc_files ; do
129 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
130 if [ -n "${verbose}" ] ; then
131 echo Removing traces of \"arc\" from $i...
132 fi
133 cp $i new
134 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
135 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
136 if [ -n "${verbose}" ] ; then
137 echo Caching $i in .Recover...
138 fi
139 mv $i .Recover
140 fi
141 mv new $i
142 fi
143 done
144 fi
145
146 d30v_files="ChangeLog Makefile.in configure.in configure disassemble.c"
147 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
148 for i in $d30v_files ; do
149 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
150 if [ -n "${verbose}" ] ; then
151 echo Keeping d30v stuff in $i
152 fi
153 fi
154 done
155 else
156 for i in $d30v_files ; do
157 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
158 if [ -n "${verbose}" ] ; then
159 echo Removing traces of \"d30v\" from $i...
160 fi
161 cp $i new
162 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
163 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
164 if [ -n "${verbose}" ] ; then
165 echo Caching $i in .Recover...
166 fi
167 mv $i .Recover
168 fi
169 mv new $i
170 fi
171 done
172 fi
173
174 v850_files="ChangeLog Makefile.in configure.in configure disassemble.c"
175 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
176 for i in $v850_files ; do
177 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
178 if [ -n "${verbose}" ] ; then
179 echo Keeping v850 stuff in $i
180 fi
181 fi
182 done
183 else
184 for i in $v850_files ; do
185 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
186 if [ -n "${verbose}" ] ; then
187 echo Removing traces of \"v850\" from $i...
188 fi
189 cp $i new
190 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
191 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
192 if [ -n "${verbose}" ] ; then
193 echo Caching $i in .Recover...
194 fi
195 mv $i .Recover
196 fi
197 mv new $i
198 fi
199 done
200 fi
201
202 r5900_files="ChangeLog mips-opc.c"
203 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
204 for i in $r5900_files ; do
205 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
206 if [ -n "${verbose}" ] ; then
207 echo Keeping r5900 stuff in $i
208 fi
209 fi
210 done
211 else
212 for i in $r5900_files ; do
213 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
214 if [ -n "${verbose}" ] ; then
215 echo Removing traces of \"r5900\" from $i...
216 fi
217 cp $i new
218 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
219 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
220 if [ -n "${verbose}" ] ; then
221 echo Caching $i in .Recover...
222 fi
223 mv $i .Recover
224 fi
225 mv new $i
226 fi
227 done
228 fi
229
230 tic80_files="ChangeLog Makefile.in configure.in configure disassemble.c"
231 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
232 for i in $tic80_files ; do
233 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
234 if [ -n "${verbose}" ] ; then
235 echo Keeping tic80 stuff in $i
236 fi
237 fi
238 done
239 else
240 for i in $tic80_files ; do
241 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
242 if [ -n "${verbose}" ] ; then
243 echo Removing traces of \"tic80\" from $i...
244 fi
245 cp $i new
246 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
247 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
248 if [ -n "${verbose}" ] ; then
249 echo Caching $i in .Recover...
250 fi
251 mv $i .Recover
252 fi
253 mv new $i
254 fi
255 done
256 fi
257
258
259 for i in * ; do
260 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
261 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
262 fi
263 done
264
265 # End of file.
This page took 0.036435 seconds and 4 git commands to generate.