Commit | Line | Data |
---|---|---|
a6aa45a6 SS |
1 | # .Sanitize for devo/gdb/config/mips. |
2 | ||
3 | # Each directory to survive its way into a release will need a file | |
b0cb2d91 FF |
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 | |
a6aa45a6 | 14 | # done in this directory. |
b0cb2d91 FF |
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 | ||
b0cb2d91 | 26 | bigmips.mt |
662f3b3f | 27 | bigmips64.mt |
b0cb2d91 FF |
28 | decstation.mh |
29 | decstation.mt | |
7bb5e831 RS |
30 | embed.mt |
31 | embed64.mt | |
32 | embedl.mt | |
33 | embedl64.mt | |
b0cb2d91 FF |
34 | irix3.mh |
35 | irix3.mt | |
36 | irix4.mh | |
a2f1e2e5 ILT |
37 | irix5.mh |
38 | irix5.mt | |
b0cb2d91 FF |
39 | littlemips.mh |
40 | littlemips.mt | |
662f3b3f | 41 | mipsel64.mt |
c2d751d5 JK |
42 | mipsm3.mh |
43 | mipsm3.mt | |
376f8f68 PS |
44 | mipsv4.mh |
45 | mipsv4.mt | |
89e04499 | 46 | news-mips.mh |
b0cb2d91 FF |
47 | nm-irix3.h |
48 | nm-irix4.h | |
a2f1e2e5 | 49 | nm-irix5.h |
a6aa45a6 | 50 | nm-m3.h |
b0cb2d91 | 51 | nm-mips.h |
89e04499 | 52 | nm-news-mips.h |
7f6175b4 | 53 | nm-riscos.h |
a6aa45a6 | 54 | nm-sysv4.h |
7f6175b4 | 55 | riscos.mh |
b0cb2d91 | 56 | tm-bigmips.h |
662f3b3f | 57 | tm-bigmips64.h |
7bb5e831 RS |
58 | tm-embed.h |
59 | tm-embed64.h | |
60 | tm-embedl.h | |
61 | tm-embedl64.h | |
b0cb2d91 | 62 | tm-irix3.h |
a2f1e2e5 | 63 | tm-irix5.h |
b0cb2d91 | 64 | tm-mips.h |
662f3b3f | 65 | tm-mips64.h |
c2d751d5 | 66 | tm-mipsm3.h |
376f8f68 | 67 | tm-mipsv4.h |
180fd370 JSC |
68 | tm-vr4300.h |
69 | tm-vr4300el.h | |
70 | vr4300.mt | |
a4bba3e6 | 71 | vr4300el.mt |
b0cb2d91 FF |
72 | xm-irix3.h |
73 | xm-irix4.h | |
a2f1e2e5 | 74 | xm-irix5.h |
b0cb2d91 | 75 | xm-mips.h |
c2d751d5 | 76 | xm-mipsm3.h |
376f8f68 | 77 | xm-mipsv4.h |
89e04499 | 78 | xm-news-mips.h |
7f6175b4 | 79 | xm-riscos.h |
b0cb2d91 | 80 | |
87756e15 RP |
81 | Things-to-lose: |
82 | ||
775d4a40 | 83 | |
b0cb2d91 FF |
84 | Do-last: |
85 | ||
188c635f SG |
86 | if ( echo $* | grep keep\-gm > /dev/null ) ; then |
87 | for i in * ; do | |
88 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
89 | if [ -n "${verbose}" ] ; then | |
90 | echo Keeping gm stuff in $i | |
91 | fi | |
92 | fi | |
93 | done | |
94 | else | |
95 | for i in * ; do | |
96 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
97 | if [ -n "${verbose}" ] ; then | |
98 | echo Removing traces of \"gm\" from $i... | |
99 | fi | |
100 | cp $i new | |
101 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
102 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
103 | if [ -n "${verbose}" ] ; then | |
104 | echo Caching $i in .Recover... | |
105 | fi | |
106 | mv $i .Recover | |
107 | fi | |
108 | mv new $i | |
109 | fi | |
110 | done | |
111 | fi | |
112 | ||
b0cb2d91 | 113 | # End of file. |