Fixed sanitization bugs.
[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 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 CONTRIBUTORS
27 COPYING
28 ChangeLog
29 ChangeLog.1
30 Makefile.am
31 Makefile.in
32 NEWS
33 README
34 README-vms
35 acconfig.h
36 acinclude.m4
37 aclocal.m4
38 app.c
39 as.c
40 as.h
41 atof-generic.c
42 bignum-copy.c
43 bignum.h
44 bit_fix.h
45 cgen.c
46 cond.c
47 config
48 config.in
49 config-gas.com
50 configure
51 configure.bat
52 configure.in
53 debug.c
54 dep-in.sed
55 depend.c
56 doc
57 ecoff.c
58 ecoff.h
59 emul-target.h
60 emul.h
61 expr.c
62 expr.h
63 flonum-copy.c
64 flonum-konst.c
65 flonum-mult.c
66 flonum.h
67 frags.c
68 frags.h
69 gasp.c
70 gdbinit.in
71 hash.c
72 hash.h
73 input-file.c
74 input-file.h
75 input-scrub.c
76 link.cmd
77 listing.c
78 listing.h
79 literal.c
80 itbl-lex.l
81 itbl-ops.c
82 itbl-ops.h
83 itbl-parse.y
84 mac-as.r
85 macro.c
86 macro.h
87 makefile.vms
88 messages.c
89 mpw-config.in
90 mpw-make.sed
91 obj.h
92 output-file.c
93 output-file.h
94 read.c
95 read.h
96 sb.c
97 sb.h
98 stabs.c
99 stamp-h.in
100 struc-symbol.h
101 subsegs.c
102 subsegs.h
103 symbols.c
104 symbols.h
105 tc.h
106 testsuite
107 vmsconf.sh
108 write.c
109 write.h
110
111 Things-to-lose:
112
113 obsolete
114 regress
115 regress.m68k
116 testscripts
117
118 Do-last:
119
120 if ( echo $* | grep keep\-gm > /dev/null ) ; then
121 for i in * ; do
122 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
123 if [ -n "${verbose}" ] ; then
124 echo Keeping gm stuff in $i
125 fi
126 fi
127 done
128 else
129 for i in * ; do
130 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
131 if [ -n "${verbose}" ] ; then
132 echo Removing traces of \"gm\" from $i...
133 fi
134 cp $i new
135 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
136 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
137 if [ -n "${verbose}" ] ; then
138 echo Caching $i in .Recover...
139 fi
140 mv $i .Recover
141 fi
142 mv new $i
143 fi
144 done
145 fi
146
147
148 v850_files="ChangeLog configure.in configure"
149 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
150 for i in $v850_files ; do
151 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
152 if [ -n "${verbose}" ] ; then
153 echo Keeping v850e stuff in $i
154 fi
155 fi
156 done
157 else
158 for i in $v850_files ; do
159 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
160 if [ -n "${verbose}" ] ; then
161 echo Removing traces of \"v850e\" from $i...
162 fi
163 cp $i new
164 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/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
176 r5900_files="ChangeLog"
177 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
178 for i in $r5900_files ; do
179 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
180 if [ -n "${verbose}" ] ; then
181 echo Keeping r5900 stuff in $i
182 fi
183 fi
184 done
185 else
186 for i in $r5900_files ; do
187 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
188 if [ -n "${verbose}" ] ; then
189 echo Removing traces of \"r5900\" from $i...
190 fi
191 cp $i new
192 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
193 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
194 if [ -n "${verbose}" ] ; then
195 echo Caching $i in .Recover...
196 fi
197 mv $i .Recover
198 fi
199 mv new $i
200 fi
201 done
202 fi
203
204 tx19_files="ChangeLog"
205 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
206 for i in $tx19_files ; do
207 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
208 if [ -n "${verbose}" ] ; then
209 echo Keeping tx19 stuff in $i
210 fi
211 fi
212 done
213 else
214 for i in $tx19_files ; do
215 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
216 if [ -n "${verbose}" ] ; then
217 echo Removing traces of \"tx19\" from $i...
218 fi
219 cp $i new
220 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
221 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
222 if [ -n "${verbose}" ] ; then
223 echo Caching $i in .Recover...
224 fi
225 mv $i .Recover
226 fi
227 mv new $i
228 fi
229 done
230 fi
231
232 tic80_files="ChangeLog configure.in configure"
233 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
234 for i in $tic80_files ; do
235 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
236 if [ -n "${verbose}" ] ; then
237 echo Keeping tic80 stuff in $i
238 fi
239 fi
240 done
241 else
242 for i in $tic80_files ; do
243 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
244 if [ -n "${verbose}" ] ; then
245 echo Removing traces of \"tic80\" from $i...
246 fi
247 cp $i new
248 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
249 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
250 if [ -n "${verbose}" ] ; then
251 echo Caching $i in .Recover...
252 fi
253 mv $i .Recover
254 fi
255 mv new $i
256 fi
257 done
258 fi
259
260 d30v_files="ChangeLog configure configure.in"
261 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
262 for i in $d30v_files ; do
263 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
264 if [ -n "${verbose}" ] ; then
265 echo Keeping d30v stuff in $i
266 fi
267 fi
268 done
269 else
270 for i in $d30v_files ; do
271 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
272 if [ -n "${verbose}" ] ; then
273 echo Removing traces of \"d30v\" from $i...
274 fi
275 cp $i new
276 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
277 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
278 if [ -n "${verbose}" ] ; then
279 echo Caching $i in .Recover...
280 fi
281 mv $i .Recover
282 fi
283 mv new $i
284 fi
285 done
286 fi
287
288 if [ -n "${verbose}" ] ; then
289 echo Processing \"sh4\"...
290 fi
291
292 sh4_files="ChangeLog"
293 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
294 for i in $sh4_files ; do
295 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
296 if [ -n "${verbose}" ] ; then
297 echo Keeping sh4 stuff in $i
298 fi
299 fi
300 done
301 else
302 for i in $sh4_files ; do
303 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
304 if [ -n "${verbose}" ] ; then
305 echo Removing traces of \"sh4\" from $i...
306 fi
307 cp $i new
308 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
309 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
310 if [ -n "${verbose}" ] ; then
311 echo Caching $i in .Recover...
312 fi
313 mv $i .Recover
314 fi
315 mv new $i
316 fi
317 done
318 fi
319
320 for i in * ; do
321 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
322 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
323 fi
324 done
325
326 #
327 # End of file.
This page took 0.035995 seconds and 4 git commands to generate.