Commit | Line | Data |
---|---|---|
694ea471 | 1 | ######################## |
3a58da89 KR |
2 | # |
3 | # H H EEEEEE Y Y !! | |
4 | # H H E Y Y !! | |
5 | # H H E Y Y !! | |
6 | # H H E Y !! | |
7 | # HHHHHH EEEEE Y !! | |
8 | # H H E Y !! | |
9 | # H H E Y !! | |
10 | # H H E Y | |
11 | # H H EEEEEE Y !! | |
12 | # | |
694ea471 KR |
13 | # YO! READ ME!!!!!!!!! |
14 | # If you're about to add a file or directory which isn't checked out as part | |
15 | # of every module in devo (e.g., if "cvs co gas+utils" won't get it, or if | |
16 | # "cvs co gcc" won't get it), then don't, Don't, DON'T add it to the regular | |
17 | # things-to-keep or things-to-lose sections. Instead, add it to the setting | |
18 | # of keep_these_too or lose_these_too before those variables are rescanned | |
19 | # to check for the existence of the items listed in them. | |
20 | # | |
21 | # Otherwise, somebody will check out some package that doesn't include your | |
22 | # new file, and will get warnings from Sanitize when everything is really | |
23 | # okay. You don't want to get people in the habit of ignoring complaints from | |
24 | # Sanitize, do you? No, I didn't think so. | |
9719168f DE |
25 | # |
26 | # If you do add a file to the regular things-to-keep section, don't forget | |
27 | # to add the corresponding entry to the devo-support entry (or whatever) in | |
28 | # the modules file. | |
29 | # | |
694ea471 KR |
30 | ######################## |
31 | ||
3a58da89 KR |
32 | # .Sanitize for devo. |
33 | ||
5db7ecb7 | 34 | # Each directory to survive its way into a release will need a file |
a93b3c77 RP |
35 | # like this one called "./.Sanitize". All keyword lines must exist, |
36 | # and must exist in the order specified by this file. Each directory | |
37 | # in the tree will be processed, top down, in the following order. | |
38 | ||
39 | # Hash started lines like this one are comments and will be deleted | |
40 | # before anything else is done. Blank lines will also be squashed | |
41 | # out. | |
42 | ||
43 | # The lines between the "Do-first:" line and the "Things-to-keep:" | |
44 | # line are executed as a /bin/sh shell script before anything else is | |
43e36dd2 | 45 | # done in this directory. |
a93b3c77 RP |
46 | |
47 | Do-first: | |
48 | ||
b67a3a96 | 49 | keep_these_too="${keep_these_too} .cvsignore autoconf automake |
22dd55c2 | 50 | apache bash |
88770c1c FL |
51 | bfd binutils bison byacc cvs deja-gnu dejagnu diff dosrel dvips |
52 | emacs emacs19 examples expect fileutils findutils flex | |
67ae6381 ILT |
53 | gas gawk gcc gdb gdbm gdbtest glob gperf gprof grep grez groff |
54 | guile gzip | |
55dceb70 | 55 | include inet install-sh intl ispell |
7df9e116 JM |
56 | ld less libgcc libgloss libiberty libio |
57 | libstdc++ libtool | |
ff290baf | 58 | m4 make mkinstalldirs mmalloc move-if-change newlib ncurses opcodes |
f255b19d | 59 | pagas patch perl prms |
22dd55c2 | 60 | rcs readline sed send-pr shellutils sim tar textutils time |
85f903e9 | 61 | texinfo tgas utils uudecode wdiff xiberty |
c9b727f9 | 62 | configure.bat makeall.bat setup.com makefile.vms winsup |
6079ad78 | 63 | mpw-README mpw-configure mpw-config.in mpw-build.in mpw-install |
6e68a23e | 64 | ltconfig ltmain.sh missing ylwrap" |
694ea471 | 65 | |
a921e02e | 66 | lose_these_too="${lose_these_too} libg++ librx testsuite" |
e03b0bca | 67 | |
292feafc | 68 | cygnus_files="release release-info build-all.mk test-build.mk CYGNUS COPYING.NEWLIB" |
96c805d8 | 69 | |
7d0eab7b | 70 | if ( echo $* | grep keep\-cygnus > /dev/null) ; then |
96c805d8 | 71 | keep_these_too="${keep_these_too} ${cygnus_files}" |
80cad9cc | 72 | else |
96c805d8 | 73 | lose_these_too="${lose_these_too} ${cygnus_files}" |
7d0eab7b DZ |
74 | fi |
75 | ||
6f1e2150 | 76 | gdbtk_files="tcl tk itcl tix libgui" |
fc5a05e9 SS |
77 | |
78 | if ( echo $* | grep lose\-gdbtk > /dev/null) ; then | |
79 | lose_these_too="${lose_these_too} ${gdbtk_files}" | |
80 | if [ -n "${verbose}" ] ; then | |
81 | echo Deleting ${gdbtk_files} | |
82 | fi | |
83 | else | |
84 | keep_these_too="${keep_these_too} ${gdbtk_files}" | |
85 | if [ -n "${verbose}" ] ; then | |
86 | echo Keeping ${gdbtk_files} | |
87 | fi | |
5db7ecb7 | 88 | fi |
7d0eab7b | 89 | |
77cbdd35 | 90 | # This is for newlib net releases. |
c8205c90 | 91 | newlib_file="COPYING.NEWLIB" |
77cbdd35 | 92 | |
c8205c90 DE |
93 | if (echo $* | grep keep\-newlib > /dev/null) ; then |
94 | if (echo $* | grep -v keep\-cygnus > /dev/null) ; then | |
95 | keep_these_too="${keep_these_too} ${newlib_file}" | |
96 | lose_these_too="`echo ${lose_these_too} | sed -e s/${newlib_file}//`" | |
97 | fi | |
77cbdd35 | 98 | else |
c8205c90 | 99 | true; # Let keep-cygnus handle it. |
77cbdd35 DE |
100 | fi |
101 | ||
37b7d77c TT |
102 | # IDK releases don't include files which only matter to CDK. |
103 | inet_files="COPYING.LIB config config-ml.in etc symlink-tree" | |
104 | ||
105 | if (echo $* | grep keep\-inet > /dev/null); then | |
106 | lose_these_too="${lose_these_too} ${inet_files}" | |
107 | else | |
108 | keep_these_too="${keep_these_too} ${inet_files}" | |
109 | fi | |
110 | ||
f46d03c5 | 111 | ide_files="libide libidetcl vmake jstools" |
eebe454c TT |
112 | |
113 | if (echo $* | grep keep\-ide > /dev/null); then | |
6c872cd2 | 114 | keep_these_too="${keep_these_too} ${ide_files}" |
eebe454c TT |
115 | test -n "$verbose" && echo Keeping ${ide_files} |
116 | else | |
6c872cd2 | 117 | lose_these_too="${lose_these_too} ${ide_files}" |
eebe454c TT |
118 | fi |
119 | ||
6d133cc9 AC |
120 | # CGEN files: |
121 | # It is not yet clear if the cgen package will be shipped with the | |
122 | # simulators. | |
123 | cgen_files="cgen" | |
124 | ||
125 | if (echo $* | grep keep\-cgen > /dev/null); then | |
126 | keep_these_too="${keep_these_too} ${cgen_files}" | |
127 | else | |
128 | lose_these_too="${lose_these_too} ${cgen_files}" | |
129 | fi | |
37b7d77c | 130 | |
e03b0bca KR |
131 | # This top-level directory is special. We often check out only subsets |
132 | # of this directory, and complaining about directories or files we didn't | |
133 | # check out just gets obnoxious. | |
134 | ||
694ea471 | 135 | list="`(for i in ${keep_these_too}; do echo $i ; done) | sort -u`" |
e03b0bca KR |
136 | keep_these_too= |
137 | ||
138 | for file in $list ; do | |
139 | if [ -r $file ] || [ -d $file ] ; then | |
140 | keep_these_too="${keep_these_too} $file" | |
141 | fi | |
142 | done | |
143 | ||
694ea471 | 144 | list="`(for i in ${lose_these_too}; do echo $i ; done) | sort -u` " |
e03b0bca KR |
145 | lose_these_too= |
146 | ||
147 | for file in $list ; do | |
148 | if [ -r $file ] || [ -d $file ] ; then | |
149 | lose_these_too="${lose_these_too} $file" | |
150 | fi | |
151 | done | |
152 | ||
a93b3c77 | 153 | # All files listed between the "Things-to-keep:" line and the |
43e36dd2 | 154 | # "Do-last:" line will be kept. All other files will be removed. |
a93b3c77 RP |
155 | # Directories listed in this section will have their own Sanitize |
156 | # called. Directories not listed will be removed in their entirety | |
157 | # with rm -rf. | |
158 | ||
159 | Things-to-keep: | |
160 | ||
6e37b215 | 161 | COPYING |
57d32184 | 162 | ChangeLog |
a93b3c77 | 163 | Makefile.in |
965a9f14 | 164 | README |
5cc24596 | 165 | config.guess |
db2de419 | 166 | config.sub |
a93b3c77 RP |
167 | configure |
168 | configure.in | |
a93b3c77 | 169 | |
87756e15 RP |
170 | Things-to-lose: |
171 | ||
2a0b2e7f DE |
172 | # Not sure we want to include mkdep in releases yet. |
173 | mkdep | |
174 | ||
43e36dd2 RP |
175 | # The lines between the "Do-last:" line and the end of the file |
176 | # are executed as a /bin/sh shell script after everything else is | |
177 | # done. | |
178 | ||
a93b3c77 RP |
179 | Do-last: |
180 | ||
bf150019 DE |
181 | # Don't try to clean directories here, as the 'mv' command will fail. |
182 | # Also, grep fails on NFS mounted directories. | |
183 | ||
7b85349f RP |
184 | if ( echo $* | egrep verbose > /dev/null ) ; then |
185 | verbose=true | |
186 | else | |
187 | verbose= | |
188 | fi | |
189 | ||
eecef7ef FF |
190 | # Remove "sanitize-Sanitize" lines. |
191 | if [ -n "${verbose}" ] ; then | |
192 | echo Cleaning unconditional sanitizations out of Makefile.in... | |
193 | fi | |
194 | cp Makefile.in new | |
195 | sed '/start\-sanitize\-Sanitize/,/end-\sanitize\-Sanitize/d' < Makefile.in > new | |
196 | if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then | |
197 | mv Makefile.in .Recover | |
198 | fi | |
199 | mv new Makefile.in | |
200 | ||
7b85349f RP |
201 | if [ -n "${verbose}" ] ; then |
202 | echo Thawing away the \"chill\"... | |
203 | fi | |
5d4ec851 | 204 | |
5d4ec851 FF |
205 | if ( echo $* | grep keep\-chill > /dev/null ) ; then |
206 | for i in * ; do | |
207 | if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then | |
7b85349f RP |
208 | if [ -n "${verbose}" ] ; then |
209 | echo Keeping chill stuff in $i | |
210 | fi | |
5d4ec851 FF |
211 | fi |
212 | done | |
213 | else | |
214 | for i in * ; do | |
215 | if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then | |
7b85349f RP |
216 | if [ -n "${verbose}" ] ; then |
217 | echo Thawing the \"chill\" out of $i... | |
218 | fi | |
5d4ec851 FF |
219 | cp $i new |
220 | sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new | |
bf150019 DE |
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 | |
186dfd16 MM |
226 | fi |
227 | mv new $i | |
228 | fi | |
229 | done | |
230 | fi | |
231 | ||
c2304cba MH |
232 | if [ -n "${verbose}" ] ; then |
233 | echo Processing \"d30v\"... | |
234 | fi | |
235 | ||
236 | d30v_files="ChangeLog config.sub configure.in" | |
237 | ||
238 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
239 | for i in $d30v_files ; do | |
240 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
241 | if [ -n "${verbose}" ] ; then | |
242 | echo Keeping d30v stuff in $i | |
243 | fi | |
244 | fi | |
245 | done | |
246 | else | |
247 | for i in * ; do | |
248 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
249 | if [ -n "${verbose}" ] ; then | |
250 | echo Removing traces of \"d30v\" from $i... | |
251 | fi | |
252 | cp $i new | |
253 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
254 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
255 | if [ -n "${verbose}" ] ; then | |
256 | echo Caching $i in .Recover... | |
257 | fi | |
258 | mv $i .Recover | |
259 | fi | |
260 | mv new $i | |
261 | fi | |
262 | done | |
263 | fi | |
264 | ||
88632436 | 265 | if [ -n "${verbose}" ] ; then |
ff86eeb5 | 266 | echo Processing \"v850\"... |
88632436 DE |
267 | fi |
268 | ||
3f5d1c2c C |
269 | v850_files="ChangeLog config.sub configure.in" |
270 | ||
492c2670 NC |
271 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
272 | for i in $v850_files ; do | |
273 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
274 | if [ -n "${verbose}" ] ; then | |
275 | echo Keeping v850e stuff in $i | |
276 | fi | |
277 | fi | |
278 | done | |
279 | else | |
280 | for i in * ; do | |
281 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
282 | if [ -n "${verbose}" ] ; then | |
283 | echo Removing traces of \"v850e\" from $i... | |
284 | fi | |
285 | cp $i new | |
286 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new | |
287 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
288 | if [ -n "${verbose}" ] ; then | |
289 | echo Caching $i in .Recover... | |
290 | fi | |
291 | mv $i .Recover | |
292 | fi | |
293 | mv new $i | |
294 | fi | |
295 | done | |
296 | fi | |
276c2d7d GRK |
297 | |
298 | r5900_files="ChangeLog config.sub configure.in" | |
299 | ||
300 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
301 | for i in $r5900_files ; do | |
302 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
303 | if [ -n "${verbose}" ] ; then | |
304 | echo Keeping r5900 stuff in $i | |
305 | fi | |
306 | fi | |
307 | done | |
308 | else | |
309 | for i in * ; do | |
310 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
311 | if [ -n "${verbose}" ] ; then | |
312 | echo Removing traces of \"r5900\" from $i... | |
313 | fi | |
314 | cp $i new | |
315 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
316 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
317 | if [ -n "${verbose}" ] ; then | |
318 | echo Caching $i in .Recover... | |
319 | fi | |
320 | mv $i .Recover | |
321 | fi | |
322 | mv new $i | |
323 | fi | |
33d917af GRK |
324 | done |
325 | fi | |
326 | ||
327 | vr4320_files="ChangeLog config.sub" | |
328 | ||
329 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then | |
330 | for i in $vr4320_files ; do | |
331 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
332 | if [ -n "${verbose}" ] ; then | |
333 | echo Keeping vr4320 stuff in $i | |
334 | fi | |
335 | fi | |
336 | done | |
337 | else | |
338 | for i in * ; do | |
339 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
340 | if [ -n "${verbose}" ] ; then | |
341 | echo Removing traces of \"vr4320\" from $i... | |
342 | fi | |
343 | cp $i new | |
344 | sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new | |
345 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
346 | if [ -n "${verbose}" ] ; then | |
347 | echo Caching $i in .Recover... | |
348 | fi | |
349 | mv $i .Recover | |
350 | fi | |
351 | mv new $i | |
352 | fi | |
3f5d1c2c C |
353 | done |
354 | fi | |
355 | ||
318b499d GRK |
356 | tx19_files="ChangeLog config.sub" |
357 | ||
358 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then | |
359 | for i in $tx19_files ; do | |
360 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
361 | if [ -n "${verbose}" ] ; then | |
362 | echo Keeping tx19 stuff in $i | |
363 | fi | |
364 | fi | |
365 | done | |
366 | else | |
367 | for i in * ; do | |
368 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
369 | if [ -n "${verbose}" ] ; then | |
370 | echo Removing traces of \"tx19\" from $i... | |
371 | fi | |
372 | cp $i new | |
373 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
374 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
375 | if [ -n "${verbose}" ] ; then | |
376 | echo Caching $i in .Recover... | |
377 | fi | |
378 | mv $i .Recover | |
379 | fi | |
380 | mv new $i | |
381 | fi | |
382 | done | |
383 | fi | |
384 | ||
d649db65 GRK |
385 | tx49_files="ChangeLog config.sub" |
386 | ||
387 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then | |
388 | for i in $tx49_files ; do | |
389 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
390 | if [ -n "${verbose}" ] ; then | |
391 | echo Keeping tx49 stuff in $i | |
392 | fi | |
393 | fi | |
394 | done | |
395 | else | |
396 | for i in * ; do | |
397 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
398 | if [ -n "${verbose}" ] ; then | |
399 | echo Removing traces of \"tx49\" from $i... | |
400 | fi | |
401 | cp $i new | |
402 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new | |
403 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
404 | if [ -n "${verbose}" ] ; then | |
405 | echo Caching $i in .Recover... | |
406 | fi | |
407 | mv $i .Recover | |
408 | fi | |
409 | mv new $i | |
410 | fi | |
411 | done | |
412 | fi | |
413 | ||
962873d5 FF |
414 | tic80_files="ChangeLog config.sub configure.in" |
415 | ||
416 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
417 | for i in $tic80_files ; do | |
418 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
419 | if [ -n "${verbose}" ] ; then | |
420 | echo Keeping tic80 stuff in $i | |
421 | fi | |
422 | fi | |
423 | done | |
424 | else | |
425 | for i in * ; do | |
426 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
427 | if [ -n "${verbose}" ] ; then | |
428 | echo Removing traces of \"tic80\" from $i... | |
429 | fi | |
430 | cp $i new | |
431 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
432 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
433 | if [ -n "${verbose}" ] ; then | |
434 | echo Caching $i in .Recover... | |
435 | fi | |
436 | mv $i .Recover | |
437 | fi | |
438 | mv new $i | |
439 | fi | |
440 | done | |
441 | fi | |
442 | ||
69f273d8 DE |
443 | sky_files="ChangeLog config.sub configure.in" |
444 | ||
445 | if ( echo $* | grep keep\-sky > /dev/null ) ; then | |
446 | for i in $sky_files ; do | |
447 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
448 | if [ -n "${verbose}" ] ; then | |
449 | echo Keeping sky stuff in $i | |
450 | fi | |
451 | fi | |
452 | done | |
453 | else | |
454 | for i in * ; do | |
455 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
456 | if [ -n "${verbose}" ] ; then | |
457 | echo Removing traces of \"sky\" from $i... | |
458 | fi | |
459 | cp $i new | |
460 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new | |
461 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
462 | if [ -n "${verbose}" ] ; then | |
463 | echo Caching $i in .Recover... | |
464 | fi | |
465 | mv $i .Recover | |
466 | fi | |
467 | mv new $i | |
468 | fi | |
469 | done | |
470 | fi | |
471 | ||
eebe454c TT |
472 | if ( echo $* | grep keep\-ide > /dev/null ) ; then |
473 | for i in * ; do | |
474 | if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then | |
475 | if [ -n "${verbose}" ] ; then | |
476 | echo Keeping ide stuff in $i | |
477 | fi | |
478 | fi | |
479 | done | |
480 | else | |
481 | for i in * ; do | |
482 | if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then | |
483 | if [ -n "${verbose}" ] ; then | |
484 | echo Removing traces of \"ide\" from $i... | |
485 | fi | |
486 | cp $i new | |
487 | sed '/start\-sanitize\-ide/,/end-\sanitize\-ide/d' < $i > new | |
488 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
489 | if [ -n "${verbose}" ] ; then | |
490 | echo Caching $i in .Recover... | |
491 | fi | |
492 | mv $i .Recover | |
493 | fi | |
494 | mv new $i | |
495 | fi | |
496 | done | |
497 | fi | |
498 | ||
6c872cd2 | 499 | if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then |
570d5115 FF |
500 | if [ -n "${verbose}" ] ; then |
501 | echo Catering to RMS by removing traces of \"gdbtk\"... | |
502 | fi | |
e454c400 FF |
503 | for i in * ; do |
504 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
505 | if [ -n "${verbose}" ] ; then | |
506 | echo Removing traces of \"gdbtk\" from $i... | |
507 | fi | |
508 | cp $i new | |
509 | sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new | |
510 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
570d5115 FF |
511 | if [ -n "${verbose}" ] ; then |
512 | echo Caching $i in .Recover... | |
513 | fi | |
e454c400 FF |
514 | mv $i .Recover |
515 | fi | |
516 | mv new $i | |
517 | fi | |
518 | done | |
6c872cd2 FL |
519 | cp Makefile.in new |
520 | sed -e '/GDBTK_SUPPORT_DIRS=/d' -e 's/ $(GDBTK_SUPPORT_DIRS)//' < Makefile.in > new | |
521 | if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then | |
522 | if [ -n "${verbose}" ] ; then | |
523 | echo Caching Makefile.in in .Recover... | |
524 | fi | |
525 | mv Makefile.in .Recover | |
526 | fi | |
527 | mv new Makefile.in | |
e454c400 | 528 | else |
570d5115 FF |
529 | if [ -n "${verbose}" ] ; then |
530 | echo Leaving \"gdbtk\" in the sources... | |
531 | fi | |
e454c400 FF |
532 | for i in * ; do |
533 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
534 | if [ -n "${verbose}" ] ; then | |
535 | echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines... | |
536 | fi | |
537 | cp $i new | |
538 | sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new | |
539 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
570d5115 FF |
540 | if [ -n "${verbose}" ] ; then |
541 | echo Caching $i in .Recover... | |
542 | fi | |
e454c400 FF |
543 | mv $i .Recover |
544 | fi | |
545 | mv new $i | |
546 | fi | |
547 | done | |
6c872cd2 FL |
548 | fi |
549 | ||
6271cadd FF |
550 | if ( echo $* | grep lose\-mswin > /dev/null ) ; then |
551 | if [ -n "${verbose}" ] ; then | |
552 | echo Removing traces of \"mswin\"... | |
553 | fi | |
554 | for i in * ; do | |
555 | if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then | |
556 | if [ -n "${verbose}" ] ; then | |
557 | echo Removing traces of \"mswin\" from $i... | |
558 | fi | |
559 | cp $i new | |
560 | sed '/start\-sanitize\-mswin/,/end-\sanitize\-mswin/d' < $i > new | |
561 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
562 | if [ -n "${verbose}" ] ; then | |
563 | echo Caching $i in .Recover... | |
564 | fi | |
565 | mv $i .Recover | |
566 | fi | |
567 | mv new $i | |
568 | fi | |
569 | done | |
570 | else | |
571 | if [ -n "${verbose}" ] ; then | |
572 | echo Leaving \"mswin\" in the sources... | |
573 | fi | |
574 | for i in * ; do | |
575 | if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then | |
576 | if [ -n "${verbose}" ] ; then | |
577 | echo Keeping \"mswin\" stuff in $i, but editing out sanitize lines... | |
578 | fi | |
579 | cp $i new | |
580 | sed -e '/start\-sanitize\-mswin/d' -e '/end\-sanitize\-mswin/d' < $i > new | |
581 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
582 | if [ -n "${verbose}" ] ; then | |
583 | echo Caching $i in .Recover... | |
584 | fi | |
585 | mv $i .Recover | |
586 | fi | |
587 | mv new $i | |
588 | fi | |
589 | done | |
590 | fi | |
591 | ||
6b29430f ILT |
592 | vr5400_files="ChangeLog config.sub" |
593 | ||
594 | if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then | |
595 | for i in $vr5400_files ; do | |
596 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then | |
597 | if [ -n "${verbose}" ] ; then | |
598 | echo Keeping vr5400 stuff in $i | |
599 | fi | |
600 | fi | |
601 | done | |
602 | else | |
603 | for i in * ; do | |
604 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then | |
605 | if [ -n "${verbose}" ] ; then | |
606 | echo Removing traces of \"vr5400\" from $i... | |
607 | fi | |
608 | cp $i new | |
609 | sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new | |
610 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
611 | if [ -n "${verbose}" ] ; then | |
612 | echo Caching $i in .Recover... | |
613 | fi | |
614 | mv $i .Recover | |
615 | fi | |
616 | mv new $i | |
617 | fi | |
618 | done | |
619 | fi | |
620 | ||
9a8ea169 NC |
621 | m32rx_files="ChangeLog config-ml.in" |
622 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
623 | for i in $m32rx_files ; do | |
624 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
625 | if [ -n "${verbose}" ] ; then | |
626 | echo Keeping m32rx stuff in $i | |
627 | fi | |
628 | fi | |
629 | done | |
630 | else | |
631 | for i in * ; do | |
632 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
633 | if [ -n "${verbose}" ] ; then | |
634 | echo Removing traces of \"m32rx\" from $i... | |
635 | fi | |
636 | cp $i new | |
637 | sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new | |
638 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
639 | if [ -n "${verbose}" ] ; then | |
640 | echo Caching $i in .Recover... | |
641 | fi | |
642 | mv $i .Recover | |
643 | fi | |
644 | mv new $i | |
645 | fi | |
646 | done | |
647 | fi | |
648 | ||
f8b550eb AMT |
649 | kcygnus_files="configure" |
650 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then | |
651 | for i in $kcygnus_files ; do | |
652 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
653 | if [ -n "${verbose}" ] ; then | |
654 | echo Keeping Cygnus stuff in $i | |
655 | fi | |
656 | cp $i new | |
657 | grep -v sanitize-cygnus $i > new | |
658 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
659 | if [ -n "${verbose}" ] ; then | |
660 | echo Caching $i in .Recover... | |
661 | fi | |
662 | mv $i .Recover | |
663 | fi | |
664 | mv new $i | |
665 | fi | |
666 | done | |
667 | else | |
668 | for i in * ; do | |
669 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
670 | if [ -n "${verbose}" ] ; then | |
671 | echo Removing traces of \"cygnus\" from $i... | |
672 | fi | |
673 | cp $i new | |
674 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new | |
675 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
676 | if [ -n "${verbose}" ] ; then | |
677 | echo Caching $i in .Recover... | |
678 | fi | |
679 | mv $i .Recover | |
680 | fi | |
681 | mv new $i | |
682 | fi | |
683 | done | |
684 | fi | |
685 | ||
686 | ||
3b0fb9c9 KR |
687 | # Do this check LAST! |
688 | for i in * ; do | |
689 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
690 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
691 | exit 1 | |
692 | fi | |
693 | done | |
694 | ||
57d32184 | 695 | # eof |