e11dbc19a8adc075a4b3d7e231c2d7136ab52187
[platform/upstream/binutils.git] / gas / testsuite / gas / h8300 / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize".  All keyword lines must exist,
7 # and must exist in the order specified by this file.  Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done.  Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this 
17
18 Do-first:
19
20 # All files listed between the "Things-to-keep:" line and the
21 # "Files-to-sed:" line will be kept.  All other files will be removed.
22 # Directories listed in this section will have their own Sanitize
23 # called.  Directories not listed will be removed in their entirety
24 # with rm -rf.
25
26 Things-to-keep:
27
28 addsub.s
29 addsubh.s
30 addsubs.s
31 bitops1.s
32 bitops1h.s
33 bitops1s.s
34 bitops2.s
35 bitops2h.s
36 bitops2s.s
37 bitops3.s
38 bitops3h.s
39 bitops3s.s
40 bitops4.s
41 bitops4h.s
42 bitops4s.s
43 branch.s
44 branchh.s
45 branchs.s
46 cbranch.s
47 cbranchh.s
48 cbranchs.s
49 cmpsi2.s
50 compare.s
51 compareh.s
52 compares.s
53 decimal.s
54 decimalh.s
55 decimals.s
56 divmul.s
57 divmulh.s
58 divmuls.s
59 extendh.s
60 extends.s
61 ffxx1.d
62 ffxx1.s
63 h8300.exp
64 incdec.s
65 incdech.s
66 incdecs.s
67 logical.s
68 logicalh.s
69 logicals.s
70 macs.s
71 misc.s
72 misch.s
73 miscs.s
74 mov32bug.s
75 movb.s
76 movbh.s
77 movbs.s
78 movlh.s
79 movls.s
80 movw.s
81 movwh.s
82 movws.s
83 multiples.s
84 pushpop.s
85 pushpoph.s
86 pushpops.s
87 rotsh.s
88 rotshh.s
89 rotshs.s
90
91 Things-to-lose:
92
93 Do-last:
94
95 if [ -n "${verbose}" ] ; then
96         echo Processing \"h8s\"...
97 fi
98
99 h8s_files="h8300.exp"
100 if ( echo $* | grep keep\-h8s > /dev/null ) ; then
101         for i in $h8s_files ; do
102                 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
103                         if [ -n "${verbose}" ] ; then
104                                 echo Keeping h8s stuff in $i
105                         fi
106                 fi
107         done
108 else
109         for i in $h8s_files ; do
110                 if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
111                         if [ -n "${verbose}" ] ; then
112                                 echo Removing traces of \"h8s\" from $i...
113                         fi
114                         cp $i new
115                         sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
116                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
117                                 if [ -n "${verbose}" ] ; then
118                                         echo Caching $i in .Recover...
119                                 fi
120                                 mv $i .Recover
121                         fi
122                         mv new $i
123                 fi
124         done
125 fi
126
127 # End of file.