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 |
d4d5412d | 30 | Makefile.in |
eee109cd | 31 | NEWS |
d4d5412d | 32 | README |
eee109cd | 33 | README-vms |
6e71a03b KR |
34 | acconfig.h |
35 | aclocal.m4 | |
d4d5412d RP |
36 | app.c |
37 | as.c | |
38 | as.h | |
39 | atof-generic.c | |
d4d5412d RP |
40 | bignum-copy.c |
41 | bignum.h | |
eee109cd | 42 | bit_fix.h |
374bdac7 | 43 | cgen.c |
d4d5412d | 44 | cond.c |
6e71a03b | 45 | conf.in |
d4d5412d | 46 | config |
003acb2d | 47 | config-gas.com |
6e71a03b | 48 | configure |
c593cf41 | 49 | configure.bat |
d4d5412d RP |
50 | configure.in |
51 | debug.c | |
65d7de4f | 52 | dep-in.sed |
a262a1b2 | 53 | doc |
9faec336 ILT |
54 | ecoff.c |
55 | ecoff.h | |
511cd41c KR |
56 | emul-target.h |
57 | emul.h | |
d4d5412d RP |
58 | expr.c |
59 | expr.h | |
d4d5412d | 60 | flonum-copy.c |
eee109cd | 61 | flonum-konst.c |
d4d5412d RP |
62 | flonum-mult.c |
63 | flonum.h | |
64 | frags.c | |
65 | frags.h | |
a5a4b5ac | 66 | gasp.c |
aa4f6c56 | 67 | gdbinit.in |
d4d5412d RP |
68 | hash.c |
69 | hash.h | |
d4d5412d RP |
70 | input-file.c |
71 | input-file.h | |
72 | input-scrub.c | |
920babce | 73 | link.cmd |
d7d28d22 RP |
74 | listing.c |
75 | listing.h | |
2d29d89d | 76 | literal.c |
8e5c905e DP |
77 | itbl-lex.l |
78 | itbl-ops.c | |
79 | itbl-ops.h | |
80 | itbl-parse.y | |
4c72b6a7 | 81 | mac-as.r |
7e047ac2 ILT |
82 | macro.c |
83 | macro.h | |
f649d525 | 84 | makefile.vms |
d4d5412d | 85 | messages.c |
0fb26eac | 86 | mpw-config.in |
4c72b6a7 | 87 | mpw-make.sed |
d4d5412d | 88 | obj.h |
d4d5412d RP |
89 | output-file.c |
90 | output-file.h | |
91 | read.c | |
92 | read.h | |
7e047ac2 ILT |
93 | sb.c |
94 | sb.h | |
29249b42 | 95 | stabs.c |
d4d5412d RP |
96 | struc-symbol.h |
97 | subsegs.c | |
98 | subsegs.h | |
99 | symbols.c | |
100 | symbols.h | |
101 | tc.h | |
f70a4714 | 102 | testsuite |
be2fc7ec | 103 | vmsconf.sh |
d4d5412d RP |
104 | write.c |
105 | write.h | |
d4d5412d | 106 | |
87756e15 RP |
107 | Things-to-lose: |
108 | ||
d4d5412d RP |
109 | Do-last: |
110 | ||
cdc49cba | 111 | arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1" |
6ea93cc9 DE |
112 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
113 | for i in $arc_files ; do | |
114 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
115 | if [ -n "${verbose}" ] ; then | |
116 | echo Keeping arc stuff in $i | |
117 | fi | |
118 | fi | |
119 | done | |
120 | else | |
121 | for i in $arc_files ; do | |
122 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
123 | if [ -n "${verbose}" ] ; then | |
124 | echo Removing traces of \"arc\" from $i... | |
125 | fi | |
126 | cp $i new | |
127 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
128 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
129 | if [ -n "${verbose}" ] ; then | |
130 | echo Caching $i in .Recover... | |
131 | fi | |
132 | mv $i .Recover | |
133 | fi | |
134 | mv new $i | |
135 | fi | |
136 | done | |
137 | fi | |
138 | ||
204c73d8 SS |
139 | if ( echo $* | grep keep\-gm > /dev/null ) ; then |
140 | for i in * ; do | |
141 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
142 | if [ -n "${verbose}" ] ; then | |
143 | echo Keeping gm stuff in $i | |
144 | fi | |
145 | fi | |
146 | done | |
147 | else | |
148 | for i in * ; do | |
149 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
150 | if [ -n "${verbose}" ] ; then | |
151 | echo Removing traces of \"gm\" from $i... | |
152 | fi | |
153 | cp $i new | |
154 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
155 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
156 | if [ -n "${verbose}" ] ; then | |
157 | echo Caching $i in .Recover... | |
158 | fi | |
159 | mv $i .Recover | |
160 | fi | |
161 | mv new $i | |
162 | fi | |
163 | done | |
164 | fi | |
165 | ||
3d0afe12 | 166 | |
edc4ed85 | 167 | v850_files="ChangeLog configure.in configure Makefile.in write.c" |
c6aa56bc C |
168 | if ( echo $* | grep keep\-v850 > /dev/null ) ; then |
169 | for i in $v850_files ; do | |
170 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
171 | if [ -n "${verbose}" ] ; then | |
172 | echo Keeping v850 stuff in $i | |
173 | fi | |
174 | fi | |
175 | done | |
176 | else | |
177 | for i in $v850_files ; do | |
178 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
179 | if [ -n "${verbose}" ] ; then | |
180 | echo Removing traces of \"v850\" from $i... | |
181 | fi | |
182 | cp $i new | |
183 | sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new | |
184 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
276c2d7d GRK |
185 | if [ -n "${verbose}" ] ; then |
186 | echo Caching $i in .Recover... | |
187 | fi | |
188 | mv $i .Recover | |
189 | fi | |
190 | mv new $i | |
191 | fi | |
192 | done | |
193 | fi | |
194 | ||
195 | r5900_files="ChangeLog" | |
196 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
197 | for i in $r5900_files ; do | |
198 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
199 | if [ -n "${verbose}" ] ; then | |
200 | echo Keeping r5900 stuff in $i | |
201 | fi | |
202 | fi | |
203 | done | |
204 | else | |
205 | for i in $r5900_files ; do | |
206 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
207 | if [ -n "${verbose}" ] ; then | |
208 | echo Removing traces of \"r5900\" from $i... | |
209 | fi | |
210 | cp $i new | |
211 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
212 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
c6aa56bc C |
213 | if [ -n "${verbose}" ] ; then |
214 | echo Caching $i in .Recover... | |
215 | fi | |
216 | mv $i .Recover | |
217 | fi | |
218 | mv new $i | |
219 | fi | |
220 | done | |
221 | fi | |
222 | ||
64556643 FF |
223 | tic80_files="ChangeLog configure.in configure" |
224 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
225 | for i in $tic80_files ; do | |
226 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
227 | if [ -n "${verbose}" ] ; then | |
228 | echo Keeping tic80 stuff in $i | |
229 | fi | |
230 | fi | |
231 | done | |
232 | else | |
233 | for i in $tic80_files ; do | |
234 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
235 | if [ -n "${verbose}" ] ; then | |
236 | echo Removing traces of \"tic80\" from $i... | |
237 | fi | |
238 | cp $i new | |
239 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/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 | |
250 | ||
54d5e0fb AMT |
251 | d30v_files="ChangeLog configure configure.in" |
252 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
253 | for i in $d30v_files ; do | |
254 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
255 | if [ -n "${verbose}" ] ; then | |
256 | echo Keeping d30v stuff in $i | |
257 | fi | |
258 | fi | |
259 | done | |
260 | else | |
261 | for i in $d30v_files ; do | |
262 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
263 | if [ -n "${verbose}" ] ; then | |
264 | echo Removing traces of \"d30v\" from $i... | |
265 | fi | |
266 | cp $i new | |
267 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
268 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
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 | ||
5c680afd MT |
279 | for i in * ; do |
280 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
281 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
282 | fi | |
283 | done | |
284 | ||
d4d5412d | 285 | # |
d4d5412d | 286 | # End of file. |