* Added hooks to new dejagnu sky tests, removed old test from run.
[binutils-gdb.git] / gas / config / .Sanitize
blob79ba312d1505fb6f91df3d6bc30028a96a1460a1
1 # .Sanitize for devo/gas/config
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.
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.
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.
16 Do-first:
18 if [ -d vms ]; then
19         lose_these_too="vms ${lose_these_too}"
22 d30v_files="tc-d30v.c tc-d30v.h"
24 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
25         keep_these_too="${d30v_files} ${keep_these_too}"
26 else
27         lose_these_too="${d30v_files} ${lose_these_too}"
30 tic80_files="tc-tic80.c tc-tic80.h"
32 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
33         keep_these_too="${tic80_files} ${keep_these_too}"
34 else
35         lose_these_too="${tic80_files} ${lose_these_too}"
38 sky_files="tc-dvp.c tc-dvp.h"
40 if ( echo $* | grep keep\-sky > /dev/null ) ; then
41         keep_these_too="${sky_files} ${keep_these_too}"
42 else
43         lose_these_too="${sky_files} ${lose_these_too}"
46 # All files listed between the "Things-to-keep:" line and the
47 # "Do-last:" line will be kept.  All other files will be removed.
48 # Directories listed in this section will have their own Sanitize
49 # called.  Directories not listed will be removed in their entirety
50 # with rm -rf.
52 Things-to-keep:
54 aout_gnu.h
55 atof-ieee.c
56 atof-tahoe.c
57 atof-vax.c
58 e-i386coff.c
59 e-i386elf.c
60 e-mipsecoff.c
61 e-mipself.c
62 go32.cfg
63 itbl-mips.h
64 m68k-parse.h
65 m68k-parse.y
66 m88k-opcode.h
67 obj-aout.c
68 obj-aout.h
69 obj-bout.c
70 obj-bout.h
71 obj-coff.c
72 obj-coff.h
73 obj-ecoff.c
74 obj-ecoff.h
75 obj-elf.c
76 obj-elf.h
77 obj-evax.c
78 obj-evax.h
79 obj-generic.c
80 obj-generic.h
81 obj-hp300.c
82 obj-hp300.h
83 obj-ieee.c
84 obj-ieee.h
85 obj-multi.c
86 obj-multi.h
87 obj-som.c
88 obj-som.h
89 obj-vms.c
90 obj-vms.h
91 tc-a29k.c
92 tc-a29k.h
93 tc-alpha.c
94 tc-alpha.h
95 tc-arc.c
96 tc-arc.h
97 tc-arm.c
98 tc-arm.h
99 tc-d10v.c
100 tc-d10v.h
101 tc-generic.c
102 tc-generic.h
103 tc-h8300.c
104 tc-h8300.h
105 tc-h8500.c
106 tc-h8500.h
107 tc-hppa.c
108 tc-hppa.h
109 tc-i386.c
110 tc-i386.h
111 tc-i860.c
112 tc-i860.h
113 tc-i960.c
114 tc-i960.h
115 tc-m32r.c
116 tc-m32r.h
117 tc-m68851.h
118 tc-m68k.c
119 tc-m68k.h
120 tc-m88k.c
121 tc-m88k.h
122 tc-mips.c
123 tc-mips.h
124 tc-mn10200.c
125 tc-mn10200.h
126 tc-mn10300.c
127 tc-mn10300.h
128 tc-ns32k.c
129 tc-ns32k.h
130 tc-ppc.c
131 tc-ppc.h
132 tc-sh.c
133 tc-sh.h
134 tc-sparc.c
135 tc-sparc.h
136 tc-tahoe.c
137 tc-tahoe.h
138 tc-tic30.c
139 tc-tic30.h
140 tc-v850.c
141 tc-v850.h
142 tc-vax.c
143 tc-vax.h
144 tc-w65.c
145 tc-w65.h
146 tc-z8k.c
147 tc-z8k.h
148 te-386bsd.h
149 te-aux.h
150 te-delt88.h
151 te-delta.h
152 te-dpx2.h
153 te-dynix.h
154 te-generic.h
155 te-go32.h
156 te-hp300.h
157 te-hppa.h
158 te-i386aix.h
159 te-ic960.h
160 te-linux.h
161 te-lnews.h
162 te-lynx.h
163 te-mach.h
164 te-macos.h
165 te-multi.h
166 te-nbsd.h
167 te-nbsd532.h
168 te-pc532mach.h
169 te-pe.h
170 te-ppcnw.h
171 te-psos.h
172 te-riscix.h
173 te-sparcaout.h
174 te-sun3.h
175 te-svr4.h
176 te-sysv32.h
177 vax-inst.h
178 vms-a-conf.h
179 vms-conf.h
181 Things-to-lose:
185 # The lines between the "Do-last:" line and the end of the file
186 # are executed as a /bin/sh shell script after everything else is
187 # done.
189 Do-last:
191 r5900_files="tc-mips.c"
192 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
193         for i in $r5900_files ; do
194                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
195                         if [ -n "${verbose}" ] ; then
196                                 echo Keeping r5900 stuff in $i
197                         fi
198                 fi
199         done
200 else
201         for i in * ; do
202                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
203                         if [ -n "${verbose}" ] ; then
204                                 echo Removing traces of \"r5900\" from $i...
205                         fi
206                         cp $i new
207                         sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
208                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
209                                 if [ -n "${verbose}" ] ; then
210                                         echo Caching $i in .Recover...
211                                 fi
212                                 mv $i .Recover
213                         fi
214                         mv new $i
215                 fi
216         done
219 vr5400_files="tc-mips.c"
220 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
221         for i in $vr5400_files ; do
222                 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
223                         if [ -n "${verbose}" ] ; then
224                                 echo Keeping vr5400 stuff in $i
225                         fi
226                 fi
227         done
228 else
229         for i in * ; do
230                 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
231                         if [ -n "${verbose}" ] ; then
232                                 echo Removing traces of \"vr5400\" from $i...
233                         fi
234                         cp $i new
235                         sed '/start\-sanitize\-vr5400/,/end\-sanitize\-vr5400/d' < $i > new
236                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
237                                 if [ -n "${verbose}" ] ; then
238                                         echo Caching $i in .Recover...
239                                 fi
240                                 mv $i .Recover
241                         fi
242                         mv new $i
243                 fi
244         done
247 tx19_files="tc-mips.c"
248 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
249         for i in $tx19_files ; do
250                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
251                         if [ -n "${verbose}" ] ; then
252                                 echo Keeping tx19 stuff in $i
253                         fi
254                 fi
255         done
256 else
257         for i in * ; do
258                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
259                         if [ -n "${verbose}" ] ; then
260                                 echo Removing traces of \"tx19\" from $i...
261                         fi
262                         cp $i new
263                         sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new
264                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
265                                 if [ -n "${verbose}" ] ; then
266                                         echo Caching $i in .Recover...
267                                 fi
268                                 mv $i .Recover
269                         fi
270                         mv new $i
271                 fi
272         done
275 tx49_files="ChangeLog tc-mips.c"
276 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
277         for i in $tx49_files ; do
278                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
279                         if [ -n "${verbose}" ] ; then
280                                 echo Keeping tx49 stuff in $i
281                         fi
282                 fi
283         done
284 else
285         for i in * ; do
286                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
287                         if [ -n "${verbose}" ] ; then
288                                 echo Removing traces of \"tx49\" from $i...
289                         fi
290                         cp $i new
291                         sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new
292                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
293                                 if [ -n "${verbose}" ] ; then
294                                         echo Caching $i in .Recover...
295                                 fi
296                                 mv $i .Recover
297                         fi
298                         mv new $i
299                 fi
300         done
303 tic80_files="obj-coff.h"
304 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
305         for i in $tic80_files ; do
306                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
307                         if [ -n "${verbose}" ] ; then
308                                 echo Keeping tic80 stuff in $i
309                         fi
310                 fi
311         done
312 else
313         for i in * ; do
314                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
315                         if [ -n "${verbose}" ] ; then
316                                 echo Removing traces of \"tic80\" from $i...
317                         fi
318                         cp $i new
319                         sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
320                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
321                                 if [ -n "${verbose}" ] ; then
322                                         echo Caching $i in .Recover...
323                                 fi
324                                 mv $i .Recover
325                         fi
326                         mv new $i
327                 fi
328         done
331 v850e_files="tc-v850.c tc-v850.h"
332 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
333         for i in $v850e_files ; do
334                 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
335                         if [ -n "${verbose}" ] ; then
336                                 echo Keeping v850e stuff in $i
337                         fi
338                 fi
339         done
340 else
341         for i in $v850e_files ; do
342                 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
343                         if [ -n "${verbose}" ] ; then
344                                 echo Removing traces of \"v850e\" from $i...
345                         fi
346                         cp $i new
347                         sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
348                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
349                                 if [ -n "${verbose}" ] ; then
350                                         echo Caching $i in .Recover...
351                                 fi
352                                 mv $i .Recover
353                         fi
354                         mv new $i
355                 fi
356         done
359 m32rx_files="tc-m32r.c tc-m32r.h"
360 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
361         for i in $m32rx_files ; do
362                 if test ! -d $i && (grep sanitize\-m32rx $i > /dev/null) ; then
363                         if [ -n "${verbose}" ] ; then
364                                 echo Keeping m32rx stuff in $i
365                         fi
366                 fi
367         done
368 else
369         for i in $m32rx_files ; do
370                 if test -r $i && (grep sanitize\-m32rx $i > /dev/null) ; then
371                         if [ -n "${verbose}" ] ; then
372                                 echo Removing traces of \"m32rx\" from $i...
373                         fi
374                         cp $i new
375                         sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
376                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
377                                 if [ -n "${verbose}" ] ; then
378                                         echo Caching $i in .Recover...
379                                 fi
380                                 mv $i .Recover
381                         fi
382                         mv new $i
383                 fi
384         done
386 if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
387         for i in $m32rx_files ; do
388                 if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
389                         if [ -n "${verbose}" ] ; then
390                                 echo Keeping m32rx stuff in $i
391                         fi
392                 fi
393         done
394 else
395         for i in $m32rx_files ; do
396                 if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
397                         if [ -n "${verbose}" ] ; then
398                                 echo Removing traces of \"m32rx\" from $i...
399                         fi
400                         cp $i new
401                         sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new
402                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
403                                 if [ -n "${verbose}" ] ; then
404                                         echo Caching $i in .Recover...
405                                 fi
406                                 mv $i .Recover
407                         fi
408                         mv new $i
409                 fi
410         done
413 vr4320_files="tc-mips.c"
414 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
415         for i in $vr4320_files ; do
416                 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
417                         if [ -n "${verbose}" ] ; then
418                                 echo Keeping vr4320 stuff in $i
419                         fi
420                 fi
421         done
422 else
423         for i in $vr4320_files ; do
424                 if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then
425                         if [ -n "${verbose}" ] ; then
426                                 echo Removing traces of \"vr4320\" from $i...
427                         fi
428                         cp $i new
429                         sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/d' < $i > new
430                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
431                                 if [ -n "${verbose}" ] ; then
432                                         echo Caching $i in .Recover...
433                                 fi
434                                 mv $i .Recover
435                         fi
436                         mv new $i
437                 fi
438         done
441 for i in * ; do
442         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
443                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
444         fi
445 done
447 # eof