* gas/sparc/set64.d: Update for recent disassembler changes.
[deliverable/binutils-gdb.git] / gas / .Sanitize
1 # .Sanitize for devo/gas.
2
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.
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 directory.
15
16 Do-first:
17
18 lose_these_too=""
19 for d in obsolete regress regress.m68k testscripts ; do
20 if [ -d $d ]; then
21 lose_these_too="${lose_these_too} $d"
22 fi
23 done
24
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
31 Things-to-keep:
32
33 CONTRIBUTORS
34 COPYING
35 ChangeLog
36 ChangeLog.1
37 Makefile.am
38 Makefile.in
39 NEWS
40 README
41 README-vms
42 acconfig.h
43 acinclude.m4
44 aclocal.m4
45 app.c
46 as.c
47 as.h
48 atof-generic.c
49 bignum-copy.c
50 bignum.h
51 bit_fix.h
52 cgen.c
53 cond.c
54 config
55 config.in
56 config-gas.com
57 configure
58 configure.bat
59 configure.in
60 debug.c
61 dep-in.sed
62 depend.c
63 doc
64 ecoff.c
65 ecoff.h
66 emul-target.h
67 emul.h
68 expr.c
69 expr.h
70 flonum-copy.c
71 flonum-konst.c
72 flonum-mult.c
73 flonum.h
74 frags.c
75 frags.h
76 gasp.c
77 gdbinit.in
78 hash.c
79 hash.h
80 input-file.c
81 input-file.h
82 input-scrub.c
83 link.cmd
84 listing.c
85 listing.h
86 literal.c
87 itbl-lex.l
88 itbl-ops.c
89 itbl-ops.h
90 itbl-parse.y
91 mac-as.r
92 macro.c
93 macro.h
94 makefile.vms
95 messages.c
96 mpw-config.in
97 mpw-make.sed
98 obj.h
99 output-file.c
100 output-file.h
101 read.c
102 read.h
103 sb.c
104 sb.h
105 stabs.c
106 stamp-h.in
107 struc-symbol.h
108 subsegs.c
109 subsegs.h
110 symbols.c
111 symbols.h
112 tc.h
113 testsuite
114 vmsconf.sh
115 write.c
116 write.h
117
118 Things-to-lose:
119
120 Do-last:
121
122 v850_files="ChangeLog configure.in configure"
123 if ( 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
131 else
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
148 fi
149
150 r5900_files="ChangeLog"
151 if ( 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
159 else
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
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
176 fi
177
178 tx19_files="ChangeLog"
179 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
180 for i in $tx19_files ; do
181 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
182 if [ -n "${verbose}" ] ; then
183 echo Keeping tx19 stuff in $i
184 fi
185 fi
186 done
187 else
188 for i in $tx19_files ; do
189 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
190 if [ -n "${verbose}" ] ; then
191 echo Removing traces of \"tx19\" from $i...
192 fi
193 cp $i new
194 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/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
204 fi
205
206 tic80_files="ChangeLog configure.in configure"
207 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
208 for i in $tic80_files ; do
209 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
210 if [ -n "${verbose}" ] ; then
211 echo Keeping tic80 stuff in $i
212 fi
213 fi
214 done
215 else
216 for i in $tic80_files ; do
217 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
218 if [ -n "${verbose}" ] ; then
219 echo Removing traces of \"tic80\" from $i...
220 fi
221 cp $i new
222 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/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
232 fi
233
234 d30v_files="ChangeLog configure configure.in"
235 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
236 for i in $d30v_files ; do
237 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
238 if [ -n "${verbose}" ] ; then
239 echo Keeping d30v stuff in $i
240 fi
241 fi
242 done
243 else
244 for i in $d30v_files ; do
245 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
246 if [ -n "${verbose}" ] ; then
247 echo Removing traces of \"d30v\" from $i...
248 fi
249 cp $i new
250 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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
260 fi
261
262 if [ -n "${verbose}" ] ; then
263 echo Processing \"sh4\"...
264 fi
265
266 sh4_files="ChangeLog"
267 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
268 for i in $sh4_files ; do
269 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
270 if [ -n "${verbose}" ] ; then
271 echo Keeping sh4 stuff in $i
272 fi
273 fi
274 done
275 else
276 for i in $sh4_files ; do
277 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
278 if [ -n "${verbose}" ] ; then
279 echo Removing traces of \"sh4\" from $i...
280 fi
281 cp $i new
282 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
283 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
284 if [ -n "${verbose}" ] ; then
285 echo Caching $i in .Recover...
286 fi
287 mv $i .Recover
288 fi
289 mv new $i
290 fi
291 done
292 fi
293
294 for i in * ; do
295 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
296 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
297 fi
298 done
299
300 #
301 # End of file.
This page took 0.0838 seconds and 4 git commands to generate.