Commit | Line | Data |
---|---|---|
a6148eeb | 1 | # .Sanitize for devo/gas. |
d4d5412d | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
d4d5412d RP |
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 | |
a6148eeb | 14 | # done in this directory. |
d4d5412d RP |
15 | |
16 | Do-first: | |
17 | ||
d4d5412d RP |
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 | ||
eee109cd | 26 | CONTRIBUTORS |
d4d5412d RP |
27 | COPYING |
28 | ChangeLog | |
cdc49cba | 29 | ChangeLog.1 |
e2b4bd2a | 30 | Makefile.am |
d4d5412d | 31 | Makefile.in |
eee109cd | 32 | NEWS |
d4d5412d | 33 | README |
eee109cd | 34 | README-vms |
6e71a03b | 35 | acconfig.h |
e2b4bd2a | 36 | acinclude.m4 |
6e71a03b | 37 | aclocal.m4 |
d4d5412d RP |
38 | app.c |
39 | as.c | |
40 | as.h | |
41 | atof-generic.c | |
d4d5412d RP |
42 | bignum-copy.c |
43 | bignum.h | |
eee109cd | 44 | bit_fix.h |
374bdac7 | 45 | cgen.c |
d4d5412d RP |
46 | cond.c |
47 | config | |
e2b4bd2a | 48 | config.in |
003acb2d | 49 | config-gas.com |
6e71a03b | 50 | configure |
c593cf41 | 51 | configure.bat |
d4d5412d RP |
52 | configure.in |
53 | debug.c | |
65d7de4f | 54 | dep-in.sed |
663282f0 | 55 | depend.c |
a262a1b2 | 56 | doc |
9faec336 ILT |
57 | ecoff.c |
58 | ecoff.h | |
511cd41c KR |
59 | emul-target.h |
60 | emul.h | |
d4d5412d RP |
61 | expr.c |
62 | expr.h | |
d4d5412d | 63 | flonum-copy.c |
eee109cd | 64 | flonum-konst.c |
d4d5412d RP |
65 | flonum-mult.c |
66 | flonum.h | |
67 | frags.c | |
68 | frags.h | |
a5a4b5ac | 69 | gasp.c |
aa4f6c56 | 70 | gdbinit.in |
d4d5412d RP |
71 | hash.c |
72 | hash.h | |
d4d5412d RP |
73 | input-file.c |
74 | input-file.h | |
75 | input-scrub.c | |
920babce | 76 | link.cmd |
d7d28d22 RP |
77 | listing.c |
78 | listing.h | |
2d29d89d | 79 | literal.c |
8e5c905e DP |
80 | itbl-lex.l |
81 | itbl-ops.c | |
82 | itbl-ops.h | |
83 | itbl-parse.y | |
4c72b6a7 | 84 | mac-as.r |
7e047ac2 ILT |
85 | macro.c |
86 | macro.h | |
f649d525 | 87 | makefile.vms |
d4d5412d | 88 | messages.c |
0fb26eac | 89 | mpw-config.in |
4c72b6a7 | 90 | mpw-make.sed |
d4d5412d | 91 | obj.h |
d4d5412d RP |
92 | output-file.c |
93 | output-file.h | |
94 | read.c | |
95 | read.h | |
7e047ac2 ILT |
96 | sb.c |
97 | sb.h | |
29249b42 | 98 | stabs.c |
e2b4bd2a | 99 | stamp-h.in |
d4d5412d RP |
100 | struc-symbol.h |
101 | subsegs.c | |
102 | subsegs.h | |
103 | symbols.c | |
104 | symbols.h | |
105 | tc.h | |
f70a4714 | 106 | testsuite |
be2fc7ec | 107 | vmsconf.sh |
d4d5412d RP |
108 | write.c |
109 | write.h | |
d4d5412d | 110 | |
87756e15 RP |
111 | Things-to-lose: |
112 | ||
d4d5412d RP |
113 | Do-last: |
114 | ||
9fcc5e47 | 115 | arc_files="ChangeLog configure.in configure Makefile.am Makefile.in ChangeLog.1" |
6ea93cc9 DE |
116 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
117 | for i in $arc_files ; do | |
118 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
119 | if [ -n "${verbose}" ] ; then | |
120 | echo Keeping arc stuff in $i | |
121 | fi | |
122 | fi | |
123 | done | |
124 | else | |
125 | for i in $arc_files ; do | |
126 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
127 | if [ -n "${verbose}" ] ; then | |
128 | echo Removing traces of \"arc\" from $i... | |
129 | fi | |
130 | cp $i new | |
131 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
132 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
133 | if [ -n "${verbose}" ] ; then | |
134 | echo Caching $i in .Recover... | |
135 | fi | |
136 | mv $i .Recover | |
137 | fi | |
138 | mv new $i | |
139 | fi | |
140 | done | |
141 | fi | |
142 | ||
204c73d8 SS |
143 | if ( echo $* | grep keep\-gm > /dev/null ) ; then |
144 | for i in * ; do | |
145 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
146 | if [ -n "${verbose}" ] ; then | |
147 | echo Keeping gm stuff in $i | |
148 | fi | |
149 | fi | |
150 | done | |
151 | else | |
152 | for i in * ; do | |
153 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
154 | if [ -n "${verbose}" ] ; then | |
155 | echo Removing traces of \"gm\" from $i... | |
156 | fi | |
157 | cp $i new | |
158 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
159 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
160 | if [ -n "${verbose}" ] ; then | |
161 | echo Caching $i in .Recover... | |
162 | fi | |
163 | mv $i .Recover | |
164 | fi | |
165 | mv new $i | |
166 | fi | |
167 | done | |
168 | fi | |
169 | ||
3d0afe12 | 170 | |
9fcc5e47 | 171 | v850_files="ChangeLog configure.in configure Makefile.am Makefile.in write.c" |
c6aa56bc C |
172 | if ( echo $* | grep keep\-v850 > /dev/null ) ; then |
173 | for i in $v850_files ; do | |
174 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
175 | if [ -n "${verbose}" ] ; then | |
176 | echo Keeping v850 stuff in $i | |
177 | fi | |
178 | fi | |
179 | done | |
180 | else | |
181 | for i in $v850_files ; do | |
182 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
183 | if [ -n "${verbose}" ] ; then | |
184 | echo Removing traces of \"v850\" from $i... | |
185 | fi | |
186 | cp $i new | |
187 | sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new | |
188 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
276c2d7d GRK |
189 | if [ -n "${verbose}" ] ; then |
190 | echo Caching $i in .Recover... | |
191 | fi | |
192 | mv $i .Recover | |
193 | fi | |
194 | mv new $i | |
195 | fi | |
196 | done | |
197 | fi | |
a365cd79 NC |
198 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
199 | for i in $v850_files ; do | |
200 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
201 | if [ -n "${verbose}" ] ; then | |
202 | echo Keeping v850e stuff in $i | |
203 | fi | |
204 | fi | |
205 | done | |
206 | else | |
207 | for i in $v850_files ; do | |
208 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
209 | if [ -n "${verbose}" ] ; then | |
210 | echo Removing traces of \"v850e\" from $i... | |
211 | fi | |
212 | cp $i new | |
213 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new | |
214 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
215 | if [ -n "${verbose}" ] ; then | |
216 | echo Caching $i in .Recover... | |
217 | fi | |
218 | mv $i .Recover | |
219 | fi | |
220 | mv new $i | |
221 | fi | |
222 | done | |
223 | fi | |
224 | if ( echo $* | grep keep\-v850eq > /dev/null ) ; then | |
225 | for i in $v850_files ; do | |
226 | if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then | |
227 | if [ -n "${verbose}" ] ; then | |
228 | echo Keeping v850eq stuff in $i | |
229 | fi | |
230 | fi | |
231 | done | |
232 | else | |
233 | for i in $v850_files ; do | |
234 | if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then | |
235 | if [ -n "${verbose}" ] ; then | |
236 | echo Removing traces of \"v850eq\" from $i... | |
237 | fi | |
238 | cp $i new | |
239 | sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new | |
240 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
241 | if [ -n "${verbose}" ] ; then | |
242 | echo Caching $i in .Recover... | |
243 | fi | |
244 | mv $i .Recover | |
245 | fi | |
246 | mv new $i | |
247 | fi | |
248 | done | |
249 | fi | |
276c2d7d GRK |
250 | |
251 | r5900_files="ChangeLog" | |
252 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
253 | for i in $r5900_files ; do | |
254 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
255 | if [ -n "${verbose}" ] ; then | |
256 | echo Keeping r5900 stuff in $i | |
257 | fi | |
258 | fi | |
259 | done | |
260 | else | |
261 | for i in $r5900_files ; do | |
262 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
263 | if [ -n "${verbose}" ] ; then | |
264 | echo Removing traces of \"r5900\" from $i... | |
265 | fi | |
266 | cp $i new | |
267 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
268 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
c6aa56bc C |
269 | if [ -n "${verbose}" ] ; then |
270 | echo Caching $i in .Recover... | |
271 | fi | |
272 | mv $i .Recover | |
273 | fi | |
274 | mv new $i | |
275 | fi | |
276 | done | |
277 | fi | |
278 | ||
64556643 FF |
279 | tic80_files="ChangeLog configure.in configure" |
280 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
281 | for i in $tic80_files ; do | |
282 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
283 | if [ -n "${verbose}" ] ; then | |
284 | echo Keeping tic80 stuff in $i | |
285 | fi | |
286 | fi | |
287 | done | |
288 | else | |
289 | for i in $tic80_files ; do | |
290 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
291 | if [ -n "${verbose}" ] ; then | |
292 | echo Removing traces of \"tic80\" from $i... | |
293 | fi | |
294 | cp $i new | |
295 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
296 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
297 | if [ -n "${verbose}" ] ; then | |
298 | echo Caching $i in .Recover... | |
299 | fi | |
300 | mv $i .Recover | |
301 | fi | |
302 | mv new $i | |
303 | fi | |
304 | done | |
305 | fi | |
306 | ||
54d5e0fb AMT |
307 | d30v_files="ChangeLog configure configure.in" |
308 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
309 | for i in $d30v_files ; do | |
310 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
311 | if [ -n "${verbose}" ] ; then | |
312 | echo Keeping d30v stuff in $i | |
313 | fi | |
314 | fi | |
315 | done | |
316 | else | |
317 | for i in $d30v_files ; do | |
318 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
319 | if [ -n "${verbose}" ] ; then | |
320 | echo Removing traces of \"d30v\" from $i... | |
321 | fi | |
322 | cp $i new | |
323 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
324 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
325 | if [ -n "${verbose}" ] ; then | |
326 | echo Caching $i in .Recover... | |
327 | fi | |
328 | mv $i .Recover | |
329 | fi | |
330 | mv new $i | |
331 | fi | |
332 | done | |
333 | fi | |
334 | ||
5c680afd MT |
335 | for i in * ; do |
336 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
337 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
338 | fi | |
339 | done | |
340 | ||
d4d5412d | 341 | # |
d4d5412d | 342 | # End of file. |