9be92147b1d278991f8d2b03da25ebcc98e43db4
[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 d30v_files="d30v-dis.c d30v-opc.c"
27
28 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32 fi
33
34 v850_files="v850-opc.c v850-dis.c"
35
36 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38 else
39 lose_these_too="${v850_files} ${lose_these_too}"
40 fi
41
42 tic80_files="tic80-opc.c tic80-dis.c"
43
44 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46 else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48 fi
49
50
51 # All files listed between the "Things-to-keep:" line and the
52 # "Files-to-sed:" line will be kept. All other files will be removed.
53 # Directories listed in this section will have their own Sanitize
54 # called. Directories not listed will be removed in their entirety
55 # with rm -rf.
56
57 Things-to-keep:
58
59 ChangeLog
60 Makefile.in
61 aclocal.m4
62 alpha-dis.c
63 alpha-opc.c
64 arm-dis.c
65 arm-opc.h
66 a29k-dis.c
67 config.in
68 configure
69 configure.bat
70 configure.in
71 d10v-dis.c
72 d10v-opc.c
73 dis-buf.c
74 disassemble.c
75 h8300-dis.c
76 h8500-dis.c
77 h8500-opc.h
78 hppa-dis.c
79 i386-dis.c
80 i960-dis.c
81 m68k-dis.c
82 m68k-opc.c
83 m88k-dis.c
84 makefile.vms
85 mips-dis.c
86 mips-opc.c
87 mips16-opc.c
88 mn10200-dis.c
89 mn10200-opc.c
90 mn10300-dis.c
91 mn10300-opc.c
92 mpw-config.in
93 mpw-make.sed
94 ns32k-dis.c
95 ppc-dis.c
96 ppc-opc.c
97 sh-opc.h
98 sh-dis.c
99 sparc-dis.c
100 sparc-opc.c
101 sysdep.h
102 w65-dis.c
103 w65-opc.h
104 z8k-dis.c
105 z8k-opc.h
106 z8kgen.c
107
108 Things-to-lose:
109
110 Do-last:
111
112 arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
113 if ( echo $* | grep keep\-arc > /dev/null ) ; then
114 for i in $arc_files ; do
115 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
116 if [ -n "${verbose}" ] ; then
117 echo Keeping arc stuff in $i
118 fi
119 fi
120 done
121 else
122 for i in $arc_files ; do
123 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Removing traces of \"arc\" from $i...
126 fi
127 cp $i new
128 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
129 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
130 if [ -n "${verbose}" ] ; then
131 echo Caching $i in .Recover...
132 fi
133 mv $i .Recover
134 fi
135 mv new $i
136 fi
137 done
138 fi
139
140 d30v_files="ChangeLog Makefile.in configure.in configure disassemble.c"
141 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
142 for i in $d30v_files ; do
143 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
144 if [ -n "${verbose}" ] ; then
145 echo Keeping d30v stuff in $i
146 fi
147 fi
148 done
149 else
150 for i in $d30v_files ; do
151 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
152 if [ -n "${verbose}" ] ; then
153 echo Removing traces of \"d30v\" from $i...
154 fi
155 cp $i new
156 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
157 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
158 if [ -n "${verbose}" ] ; then
159 echo Caching $i in .Recover...
160 fi
161 mv $i .Recover
162 fi
163 mv new $i
164 fi
165 done
166 fi
167
168 v850_files="ChangeLog Makefile.in configure.in configure disassemble.c"
169 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
170 for i in $v850_files ; do
171 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
172 if [ -n "${verbose}" ] ; then
173 echo Keeping v850 stuff in $i
174 fi
175 fi
176 done
177 else
178 for i in $v850_files ; do
179 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
180 if [ -n "${verbose}" ] ; then
181 echo Removing traces of \"v850\" from $i...
182 fi
183 cp $i new
184 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
185 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
186 if [ -n "${verbose}" ] ; then
187 echo Caching $i in .Recover...
188 fi
189 mv $i .Recover
190 fi
191 mv new $i
192 fi
193 done
194 fi
195
196 r5900_files="ChangeLog mips-opc.c"
197 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
198 for i in $r5900_files ; do
199 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
200 if [ -n "${verbose}" ] ; then
201 echo Keeping r5900 stuff in $i
202 fi
203 fi
204 done
205 else
206 for i in $r5900_files ; do
207 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
208 if [ -n "${verbose}" ] ; then
209 echo Removing traces of \"r5900\" from $i...
210 fi
211 cp $i new
212 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
213 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
214 if [ -n "${verbose}" ] ; then
215 echo Caching $i in .Recover...
216 fi
217 mv $i .Recover
218 fi
219 mv new $i
220 fi
221 done
222 fi
223
224 tic80_files="ChangeLog Makefile.in configure.in configure disassemble.c"
225 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
226 for i in $tic80_files ; do
227 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
228 if [ -n "${verbose}" ] ; then
229 echo Keeping tic80 stuff in $i
230 fi
231 fi
232 done
233 else
234 for i in $tic80_files ; do
235 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
236 if [ -n "${verbose}" ] ; then
237 echo Removing traces of \"tic80\" from $i...
238 fi
239 cp $i new
240 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
241 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
242 if [ -n "${verbose}" ] ; then
243 echo Caching $i in .Recover...
244 fi
245 mv $i .Recover
246 fi
247 mv new $i
248 fi
249 done
250 fi
251
252 coldfire_files="ChangeLog m68k-opc.c"
253 if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
254 for i in $coldfire_files ; do
255 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
256 if [ -n "${verbose}" ] ; then
257 echo Keeping coldfire stuff in $i
258 fi
259 fi
260 done
261 else
262 for i in $coldfire_files ; do
263 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
264 if [ -n "${verbose}" ] ; then
265 echo Removing traces of \"coldfire\" from $i...
266 fi
267 cp $i new
268 sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new
269 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
270 if [ -n "${verbose}" ] ; then
271 echo Caching $i in .Recover...
272 fi
273 mv $i .Recover
274 fi
275 mv new $i
276 fi
277 done
278 fi
279
280 for i in * ; do
281 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
282 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
283 fi
284 done
285
286 # End of file.
This page took 0.050751 seconds and 3 git commands to generate.