Since d10v is public now, remove all sanitization statements
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
CommitLineData
67c2d8c8 1# .Sanitize for devo/opcodes.
a4ccc310 2
e7c4e61c 3# Each directory to survive its way into a release will need a file
a4ccc310
SC
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
10f1b597 14# done in this directory.
a4ccc310
SC
15
16Do-first:
17
8515dbe2
DE
18arc_files="arc-dis.c arc-opc.c"
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
e3659cbf
MH
26d10v_files="d10v-dis.c d10v-opc.c"
27
28if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32fi
33
b2e3f844
MH
34d30v_files="d30v-dis.c d30v-opc.c"
35
36if ( echo $* | grep keep\-d30v > /dev/null ) ; then
37 keep_these_too="${d30v_files} ${keep_these_too}"
38else
39 lose_these_too="${d30v_files} ${lose_these_too}"
40fi
41
ba39d3dd 42v850_files="v850-opc.c v850-dis.c"
6d1e1ee8
C
43
44if ( echo $* | grep keep\-v850 > /dev/null ) ; then
45 keep_these_too="${v850_files} ${keep_these_too}"
46else
47 lose_these_too="${v850_files} ${lose_these_too}"
48fi
49
6357e7f6
FF
50tic80_files="tic80-opc.c tic80-dis.c"
51
52if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
53 keep_these_too="${tic80_files} ${keep_these_too}"
54else
55 lose_these_too="${tic80_files} ${lose_these_too}"
56fi
57
6d1e1ee8 58
a4ccc310
SC
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
65Things-to-keep:
87756e15 66
a4ccc310 67ChangeLog
add1fb05 68Makefile.in
9b65d522 69aclocal.m4
5f8f6d56 70alpha-dis.c
96926bf0 71alpha-opc.c
ba08215a
KR
72arm-dis.c
73arm-opc.h
720b3aed 74a29k-dis.c
50982f7f
KR
75config.in
76configure
fc984fdb 77configure.bat
add1fb05 78configure.in
117733ad 79dis-buf.c
204c9148 80disassemble.c
3b4cc5ec 81h8300-dis.c
337110ea
SC
82h8500-dis.c
83h8500-opc.h
cfa8d061 84hppa-dis.c
c840244e 85i386-dis.c
720b3aed 86i960-dis.c
c840244e 87m68k-dis.c
85093dca 88m68k-opc.c
a4c01299 89m88k-dis.c
03496c49 90makefile.vms
bf1dd2fd 91mips-dis.c
69135a69 92mips-opc.c
8d67dc30 93mips16-opc.c
ae1b99e4
JL
94mn10200-dis.c
95mn10200-opc.c
96mn10300-dis.c
97mn10300-opc.c
7a4f107d 98mpw-config.in
077bd46a 99mpw-make.sed
2a097d73 100ns32k-dis.c
89221bd5
ILT
101ppc-dis.c
102ppc-opc.c
8679a71f
SC
103sh-opc.h
104sh-dis.c
117733ad 105sparc-dis.c
c3a1191a 106sparc-opc.c
50982f7f 107sysdep.h
9f744f91
SC
108w65-dis.c
109w65-opc.h
add1fb05 110z8k-dis.c
a4ccc310 111z8k-opc.h
ea2598e4 112z8kgen.c
add1fb05 113
87756e15
RP
114Things-to-lose:
115
62ba1060
SC
116Do-last:
117
50982f7f 118arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
8515dbe2
DE
119if ( 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
127else
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
144fi
145
b2e3f844
MH
146d30v_files="ChangeLog Makefile.in configure.in configure disassemble.c"
147if ( 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
155else
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
172fi
173
6c9370db 174v850_files="ChangeLog Makefile.in configure.in configure disassemble.c"
6d1e1ee8
C
175if ( 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
183else
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
276c2d7d
GRK
193 echo Caching $i in .Recover...
194 fi
195 mv $i .Recover
196 fi
197 mv new $i
198 fi
199 done
200fi
201
202r5900_files="ChangeLog mips-opc.c"
203if ( 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
211else
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
6d1e1ee8
C
221 echo Caching $i in .Recover...
222 fi
223 mv $i .Recover
224 fi
225 mv new $i
226 fi
227 done
228fi
229
a79d0193 230tic80_files="ChangeLog Makefile.in configure.in configure disassemble.c"
6357e7f6
FF
231if ( 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
239else
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
256fi
257
6d1e1ee8 258
5c680afd
MT
259for 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
263done
264
a4ccc310 265# End of file.
This page took 0.165597 seconds and 4 git commands to generate.