Added m32rx sanitization
[deliverable/binutils-gdb.git] / gas / .Sanitize
CommitLineData
a6148eeb 1# .Sanitize for devo/gas.
d4d5412d 2
4f5d16c7 3# Each directory to survive its way into a release will need a file
d4d5412d
RP
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
a6148eeb 14# done in this directory.
d4d5412d
RP
15
16Do-first:
17
1f4d2212
KR
18lose_these_too=""
19for d in obsolete regress regress.m68k testscripts ; do
20 if [ -d $d ]; then
21 lose_these_too="${lose_these_too} $d"
22 fi
23done
24
d4d5412d
RP
25# All files listed between the "Things-to-keep:" line and the
26# "Files-to-sed:" line will be kept. All other files will be removed.
27# Directories listed in this section will have their own Sanitize
28# called. Directories not listed will be removed in their entirety
29# with rm -rf.
30
31Things-to-keep:
32
eee109cd 33CONTRIBUTORS
d4d5412d
RP
34COPYING
35ChangeLog
cdc49cba 36ChangeLog.1
e2b4bd2a 37Makefile.am
d4d5412d 38Makefile.in
eee109cd 39NEWS
d4d5412d 40README
eee109cd 41README-vms
6e71a03b 42acconfig.h
e2b4bd2a 43acinclude.m4
6e71a03b 44aclocal.m4
d4d5412d
RP
45app.c
46as.c
47as.h
48atof-generic.c
d4d5412d
RP
49bignum-copy.c
50bignum.h
eee109cd 51bit_fix.h
374bdac7 52cgen.c
d4d5412d
RP
53cond.c
54config
e2b4bd2a 55config.in
003acb2d 56config-gas.com
6e71a03b 57configure
c593cf41 58configure.bat
d4d5412d
RP
59configure.in
60debug.c
65d7de4f 61dep-in.sed
663282f0 62depend.c
a262a1b2 63doc
9faec336
ILT
64ecoff.c
65ecoff.h
511cd41c
KR
66emul-target.h
67emul.h
d4d5412d
RP
68expr.c
69expr.h
d4d5412d 70flonum-copy.c
eee109cd 71flonum-konst.c
d4d5412d
RP
72flonum-mult.c
73flonum.h
74frags.c
75frags.h
a5a4b5ac 76gasp.c
aa4f6c56 77gdbinit.in
d4d5412d
RP
78hash.c
79hash.h
d4d5412d
RP
80input-file.c
81input-file.h
82input-scrub.c
920babce 83link.cmd
d7d28d22
RP
84listing.c
85listing.h
2d29d89d 86literal.c
8e5c905e
DP
87itbl-lex.l
88itbl-ops.c
89itbl-ops.h
90itbl-parse.y
4c72b6a7 91mac-as.r
7e047ac2
ILT
92macro.c
93macro.h
f649d525 94makefile.vms
d4d5412d 95messages.c
0fb26eac 96mpw-config.in
4c72b6a7 97mpw-make.sed
d4d5412d 98obj.h
d4d5412d
RP
99output-file.c
100output-file.h
101read.c
102read.h
7e047ac2
ILT
103sb.c
104sb.h
29249b42 105stabs.c
e2b4bd2a 106stamp-h.in
d4d5412d
RP
107struc-symbol.h
108subsegs.c
109subsegs.h
110symbols.c
111symbols.h
112tc.h
f70a4714 113testsuite
be2fc7ec 114vmsconf.sh
d4d5412d
RP
115write.c
116write.h
d4d5412d 117
87756e15
RP
118Things-to-lose:
119
d4d5412d
RP
120Do-last:
121
6ff87ead 122v850_files="ChangeLog configure.in configure"
a365cd79
NC
123if ( echo $* | grep keep\-v850e > /dev/null ) ; then
124 for i in $v850_files ; do
125 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
126 if [ -n "${verbose}" ] ; then
127 echo Keeping v850e stuff in $i
128 fi
129 fi
130 done
131else
132 for i in $v850_files ; do
133 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
134 if [ -n "${verbose}" ] ; then
135 echo Removing traces of \"v850e\" from $i...
136 fi
137 cp $i new
138 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
139 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
140 if [ -n "${verbose}" ] ; then
141 echo Caching $i in .Recover...
142 fi
143 mv $i .Recover
144 fi
145 mv new $i
146 fi
147 done
148fi
276c2d7d 149
01c655cc 150r5900_files="ChangeLog configure configure.in"
276c2d7d
GRK
151if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
152 for i in $r5900_files ; do
153 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
154 if [ -n "${verbose}" ] ; then
155 echo Keeping r5900 stuff in $i
156 fi
157 fi
158 done
159else
160 for i in $r5900_files ; do
161 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
162 if [ -n "${verbose}" ] ; then
163 echo Removing traces of \"r5900\" from $i...
164 fi
165 cp $i new
166 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
167 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
c6aa56bc
C
168 if [ -n "${verbose}" ] ; then
169 echo Caching $i in .Recover...
170 fi
171 mv $i .Recover
172 fi
173 mv new $i
174 fi
175 done
176fi
177
aa2e0460
KR
178vr5400_files="ChangeLog"
179if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
180 for i in $vr5400_files ; do
181 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
182 if [ -n "${verbose}" ] ; then
183 echo Keeping vr5400 stuff in $i
184 fi
185 fi
186 done
187else
188 for i in $vr5400_files ; do
189 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
190 if [ -n "${verbose}" ] ; then
191 echo Removing traces of \"vr5400\" from $i...
192 fi
193 cp $i new
194 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
195 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
196 if [ -n "${verbose}" ] ; then
197 echo Caching $i in .Recover...
198 fi
199 mv $i .Recover
200 fi
201 mv new $i
202 fi
203 done
204fi
205
318b499d
GRK
206tx19_files="ChangeLog"
207if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
208 for i in $tx19_files ; do
209 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
210 if [ -n "${verbose}" ] ; then
211 echo Keeping tx19 stuff in $i
212 fi
213 fi
214 done
215else
216 for i in $tx19_files ; do
217 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
218 if [ -n "${verbose}" ] ; then
219 echo Removing traces of \"tx19\" from $i...
220 fi
221 cp $i new
222 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
223 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
224 if [ -n "${verbose}" ] ; then
225 echo Caching $i in .Recover...
226 fi
227 mv $i .Recover
228 fi
229 mv new $i
230 fi
231 done
232fi
233
605ca21a
ILT
234tx49_files="ChangeLog"
235if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
236 for i in $tx49_files ; do
237 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
238 if [ -n "${verbose}" ] ; then
239 echo Keeping tx49 stuff in $i
240 fi
241 fi
242 done
243else
244 for i in $tx49_files ; do
245 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
246 if [ -n "${verbose}" ] ; then
247 echo Removing traces of \"tx49\" from $i...
248 fi
249 cp $i new
250 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
251 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
252 if [ -n "${verbose}" ] ; then
253 echo Caching $i in .Recover...
254 fi
255 mv $i .Recover
256 fi
257 mv new $i
258 fi
259 done
260fi
261
64556643
FF
262tic80_files="ChangeLog configure.in configure"
263if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
264 for i in $tic80_files ; do
265 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
266 if [ -n "${verbose}" ] ; then
267 echo Keeping tic80 stuff in $i
268 fi
269 fi
270 done
271else
272 for i in $tic80_files ; do
273 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
274 if [ -n "${verbose}" ] ; then
275 echo Removing traces of \"tic80\" from $i...
276 fi
277 cp $i new
278 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
279 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
280 if [ -n "${verbose}" ] ; then
281 echo Caching $i in .Recover...
282 fi
283 mv $i .Recover
284 fi
285 mv new $i
286 fi
287 done
288fi
289
54d5e0fb
AMT
290d30v_files="ChangeLog configure configure.in"
291if ( echo $* | grep keep\-d30v > /dev/null ) ; then
292 for i in $d30v_files ; do
293 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
294 if [ -n "${verbose}" ] ; then
295 echo Keeping d30v stuff in $i
296 fi
297 fi
298 done
299else
300 for i in $d30v_files ; do
301 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
302 if [ -n "${verbose}" ] ; then
303 echo Removing traces of \"d30v\" from $i...
304 fi
305 cp $i new
306 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
307 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
308 if [ -n "${verbose}" ] ; then
309 echo Caching $i in .Recover...
310 fi
311 mv $i .Recover
312 fi
313 mv new $i
314 fi
315 done
316fi
317
bf5ac1b8
JR
318if [ -n "${verbose}" ] ; then
319 echo Processing \"sh4\"...
320fi
321
322sh4_files="ChangeLog"
323if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
324 for i in $sh4_files ; do
325 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
326 if [ -n "${verbose}" ] ; then
327 echo Keeping sh4 stuff in $i
328 fi
329 fi
330 done
331else
332 for i in $sh4_files ; do
333 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
334 if [ -n "${verbose}" ] ; then
335 echo Removing traces of \"sh4\" from $i...
336 fi
337 cp $i new
338 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
339 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
340 if [ -n "${verbose}" ] ; then
341 echo Caching $i in .Recover...
342 fi
343 mv $i .Recover
344 fi
345 mv new $i
346 fi
347 done
348fi
349
5c680afd
MT
350for i in * ; do
351 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
352 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
353 fi
354done
355
d4d5412d 356#
d4d5412d 357# End of file.
This page took 0.294008 seconds and 4 git commands to generate.