]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - opcodes/.Sanitize
* m68k.h (mcfmac, mcfdiv): New macros.
[thirdparty/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
b2e3f844
MH
26d30v_files="d30v-dis.c d30v-opc.c"
27
28if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32fi
33
ba39d3dd 34v850_files="v850-opc.c v850-dis.c"
6d1e1ee8
C
35
36if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38else
39 lose_these_too="${v850_files} ${lose_these_too}"
40fi
41
6357e7f6
FF
42tic80_files="tic80-opc.c tic80-dis.c"
43
44if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48fi
49
6d1e1ee8 50
a4ccc310
SC
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
57Things-to-keep:
87756e15 58
a4ccc310 59ChangeLog
add1fb05 60Makefile.in
9b65d522 61aclocal.m4
5f8f6d56 62alpha-dis.c
96926bf0 63alpha-opc.c
ba08215a
KR
64arm-dis.c
65arm-opc.h
720b3aed 66a29k-dis.c
50982f7f
KR
67config.in
68configure
fc984fdb 69configure.bat
add1fb05 70configure.in
a3c5b9a4
JW
71d10v-dis.c
72d10v-opc.c
117733ad 73dis-buf.c
204c9148 74disassemble.c
3b4cc5ec 75h8300-dis.c
337110ea
SC
76h8500-dis.c
77h8500-opc.h
cfa8d061 78hppa-dis.c
c840244e 79i386-dis.c
720b3aed 80i960-dis.c
c840244e 81m68k-dis.c
85093dca 82m68k-opc.c
a4c01299 83m88k-dis.c
03496c49 84makefile.vms
bf1dd2fd 85mips-dis.c
69135a69 86mips-opc.c
8d67dc30 87mips16-opc.c
ae1b99e4
JL
88mn10200-dis.c
89mn10200-opc.c
90mn10300-dis.c
91mn10300-opc.c
7a4f107d 92mpw-config.in
077bd46a 93mpw-make.sed
2a097d73 94ns32k-dis.c
89221bd5
ILT
95ppc-dis.c
96ppc-opc.c
8679a71f
SC
97sh-opc.h
98sh-dis.c
117733ad 99sparc-dis.c
c3a1191a 100sparc-opc.c
50982f7f 101sysdep.h
9f744f91
SC
102w65-dis.c
103w65-opc.h
add1fb05 104z8k-dis.c
a4ccc310 105z8k-opc.h
ea2598e4 106z8kgen.c
add1fb05 107
87756e15
RP
108Things-to-lose:
109
62ba1060
SC
110Do-last:
111
50982f7f 112arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
8515dbe2
DE
113if ( 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
121else
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
138fi
139
b2e3f844
MH
140d30v_files="ChangeLog Makefile.in configure.in configure disassemble.c"
141if ( 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
149else
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
166fi
167
6c9370db 168v850_files="ChangeLog Makefile.in configure.in configure disassemble.c"
6d1e1ee8
C
169if ( 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
177else
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
276c2d7d
GRK
187 echo Caching $i in .Recover...
188 fi
189 mv $i .Recover
190 fi
191 mv new $i
192 fi
193 done
194fi
195
196r5900_files="ChangeLog mips-opc.c"
197if ( 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
205else
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
6d1e1ee8
C
215 echo Caching $i in .Recover...
216 fi
217 mv $i .Recover
218 fi
219 mv new $i
220 fi
221 done
222fi
223
a79d0193 224tic80_files="ChangeLog Makefile.in configure.in configure disassemble.c"
6357e7f6
FF
225if ( 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
233else
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
250fi
251
6d1e1ee8 252
5c680afd
MT
253for i in * ; do
254 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
255 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
256 fi
257done
258
a4ccc310 259# End of file.