Commit | Line | Data |
---|---|---|
fbc83def | 1 | # .Sanitize for devo/gas/testsuite/gas/mips. |
5fe67aa8 ILT |
2 | |
3 | # Each directory to survive it's 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 | |
15 | ||
16 | Do-first: | |
17 | ||
18 | ||
19 | # All files listed between the "Things-to-keep:" line and the | |
20 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
21 | # Directories listed in this section will have their own Sanitize | |
22 | # called. Directories not listed will be removed in their entirety | |
23 | # with rm -rf. | |
24 | ||
25 | Things-to-keep: | |
26 | ||
27 | abs.d | |
28 | abs.s | |
29 | add.d | |
30 | add.s | |
31 | and.d | |
32 | and.s | |
33 | beq.d | |
34 | beq.s | |
35 | bge.d | |
36 | bge.s | |
37 | bgeu.d | |
38 | bgeu.s | |
39 | blt.d | |
40 | blt.s | |
41 | bltu.d | |
42 | bltu.s | |
ff55d0fb GRK |
43 | delay.d |
44 | delay.s | |
36e5ed4c | 45 | div-ilocks.d |
5fe67aa8 ILT |
46 | div.d |
47 | div.s | |
1b68deb5 JSC |
48 | dli.d |
49 | dli.s | |
a3c2c0f4 DP |
50 | itbl |
51 | itbl.s | |
fbc83def ILT |
52 | jal-empic.d |
53 | jal-svr4pic.d | |
54 | jal-svr4pic.s | |
6190e3dd | 55 | jal-xgot.d |
5fe67aa8 ILT |
56 | jal.d |
57 | jal.s | |
fbc83def ILT |
58 | la-empic.d |
59 | la-empic.s | |
60 | la-svr4pic.d | |
6190e3dd | 61 | la-xgot.d |
5fe67aa8 ILT |
62 | la.d |
63 | la.s | |
fbc83def ILT |
64 | lb-empic.d |
65 | lb-pic.s | |
66 | lb-svr4pic.d | |
6190e3dd | 67 | lb-xgot.d |
5fe67aa8 ILT |
68 | lb.d |
69 | lb.s | |
70 | ld.d | |
71 | ld.s | |
fbc83def | 72 | ld-empic.d |
88770c1c | 73 | ld-ilocks.d |
fbc83def ILT |
74 | ld-pic.s |
75 | ld-svr4pic.d | |
6190e3dd | 76 | ld-xgot.d |
5fe67aa8 ILT |
77 | li.d |
78 | li.s | |
fbc83def ILT |
79 | lif-empic.d |
80 | lif-svr4pic.d | |
6190e3dd | 81 | lif-xgot.d |
5fe67aa8 ILT |
82 | lifloat.d |
83 | lifloat.s | |
84 | mips.exp | |
d899ee85 ILT |
85 | mips16.d |
86 | mips16.s | |
f3a01d90 KR |
87 | mips4.d |
88 | mips4.s | |
41c3da51 | 89 | mul-ilocks.d |
5fe67aa8 ILT |
90 | mul.d |
91 | mul.s | |
ff55d0fb | 92 | nodelay.d |
5fe67aa8 ILT |
93 | rol.d |
94 | rol.s | |
95 | sb.d | |
96 | sb.s | |
97 | trunc.d | |
98 | trunc.s | |
fbc83def ILT |
99 | ulh-empic.d |
100 | ulh-pic.s | |
101 | ulh-svr4pic.d | |
6190e3dd | 102 | ulh-xgot.d |
a93c34ed ILT |
103 | uld.d |
104 | uld.s | |
5fe67aa8 ILT |
105 | ulh.d |
106 | ulh.s | |
107 | ulw.d | |
108 | ulw.s | |
a93c34ed ILT |
109 | usd.d |
110 | usd.s | |
5fe67aa8 ILT |
111 | ush.d |
112 | ush.s | |
113 | usw.d | |
114 | usw.s | |
115 | ||
116 | Things-to-lose: | |
117 | ||
118 | Do-last: | |
119 | ||
fdc16ba0 GRK |
120 | tx19_files="mips.exp" |
121 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then | |
122 | for i in $tx19_files ; do | |
123 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
124 | if [ -n "${verbose}" ] ; then | |
125 | echo Keeping tx19 stuff in $i | |
126 | fi | |
127 | fi | |
128 | done | |
129 | else | |
130 | for i in $tx19_files ; do | |
131 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
132 | if [ -n "${verbose}" ] ; then | |
133 | echo Removing traces of \"tx19\" from $i... | |
134 | fi | |
135 | cp $i new | |
136 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
137 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
138 | if [ -n "${verbose}" ] ; then | |
139 | echo Caching $i in .Recover... | |
140 | fi | |
141 | mv $i .Recover | |
142 | fi | |
143 | mv new $i | |
144 | fi | |
145 | done | |
146 | fi | |
147 | ||
4ebda395 GRK |
148 | tx49_files="mips.exp" |
149 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then | |
150 | for i in $tx49_files ; do | |
151 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
152 | if [ -n "${verbose}" ] ; then | |
153 | echo Keeping tx49 stuff in $i | |
154 | fi | |
155 | fi | |
156 | done | |
157 | else | |
158 | for i in $tx49_files ; do | |
159 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
160 | if [ -n "${verbose}" ] ; then | |
161 | echo Removing traces of \"tx49\" from $i... | |
162 | fi | |
163 | cp $i new | |
164 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new | |
165 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
166 | if [ -n "${verbose}" ] ; then | |
167 | echo Caching $i in .Recover... | |
168 | fi | |
169 | mv $i .Recover | |
170 | fi | |
171 | mv new $i | |
172 | fi | |
173 | done | |
174 | fi | |
175 | ||
5fe67aa8 | 176 | # End of file. |