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 | ||
2a3b391b MA |
18 | tx19_files="tm-tx19.h tm-tx19l.h tx19.mt tx19l.mt" |
19 | ||
20 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then | |
21 | keep_these_too="${tx19_files} ${keep_these_too}" | |
22 | if [ -n "${verbose}" ] ; then | |
23 | echo Keeping ${tx19_files} | |
24 | fi | |
25 | else | |
26 | lose_these_too="${tx19_files} ${lose_these_too}" | |
27 | if [ -n "${verbose}" ] ; then | |
28 | echo Deleting ${tx19_files} | |
29 | fi | |
30 | fi | |
31 | ||
91ee2779 JL |
32 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
33 | keep_these_too="tm-r5900.h r5900.mt ${keep_these_too}" | |
34 | else | |
35 | lose_these_too="tm-r5900.h r5900.mt ${lose_these_too}" | |
36 | fi | |
37 | ||
b0cb2d91 FF |
38 | # All files listed between the "Things-to-keep:" line and the |
39 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
40 | # Directories listed in this section will have their own Sanitize | |
41 | # called. Directories not listed will be removed in their entirety | |
42 | # with rm -rf. | |
43 | ||
44 | Things-to-keep: | |
45 | ||
b0cb2d91 | 46 | bigmips.mt |
662f3b3f | 47 | bigmips64.mt |
b0cb2d91 FF |
48 | decstation.mh |
49 | decstation.mt | |
7bb5e831 RS |
50 | embed.mt |
51 | embed64.mt | |
52 | embedl.mt | |
53 | embedl64.mt | |
b0cb2d91 FF |
54 | irix3.mh |
55 | irix3.mt | |
56 | irix4.mh | |
a2f1e2e5 ILT |
57 | irix5.mh |
58 | irix5.mt | |
b0cb2d91 FF |
59 | littlemips.mh |
60 | littlemips.mt | |
662f3b3f | 61 | mipsel64.mt |
c2d751d5 JK |
62 | mipsm3.mh |
63 | mipsm3.mt | |
376f8f68 PS |
64 | mipsv4.mh |
65 | mipsv4.mt | |
89e04499 | 66 | news-mips.mh |
b0cb2d91 FF |
67 | nm-irix3.h |
68 | nm-irix4.h | |
54b8b5c3 | 69 | nm-irix5.h |
b0cb2d91 | 70 | nm-mips.h |
89e04499 | 71 | nm-news-mips.h |
7f6175b4 JK |
72 | nm-riscos.h |
73 | riscos.mh | |
b0cb2d91 | 74 | tm-bigmips.h |
662f3b3f | 75 | tm-bigmips64.h |
7bb5e831 RS |
76 | tm-embed.h |
77 | tm-embed64.h | |
78 | tm-embedl.h | |
79 | tm-embedl64.h | |
b0cb2d91 | 80 | tm-irix3.h |
a2f1e2e5 | 81 | tm-irix5.h |
b0cb2d91 | 82 | tm-mips.h |
662f3b3f | 83 | tm-mips64.h |
c2d751d5 | 84 | tm-mipsm3.h |
376f8f68 | 85 | tm-mipsv4.h |
00e40d11 MS |
86 | tm-tx39.h |
87 | tm-tx39l.h | |
180fd370 JSC |
88 | tm-vr4300.h |
89 | tm-vr4300el.h | |
4b8f6786 ILT |
90 | tm-vr5000.h |
91 | tm-vr5000el.h | |
d2d7e896 | 92 | tm-vxmips.h |
9ffd1eab MS |
93 | tx39.mt |
94 | tx39l.mt | |
180fd370 | 95 | vr4300.mt |
a4bba3e6 | 96 | vr4300el.mt |
4b8f6786 ILT |
97 | vr5000.mt |
98 | vr5000el.mt | |
d2d7e896 | 99 | vxmips.mt |
b0cb2d91 FF |
100 | xm-irix3.h |
101 | xm-irix4.h | |
a2f1e2e5 | 102 | xm-irix5.h |
b0cb2d91 | 103 | xm-mips.h |
c2d751d5 | 104 | xm-mipsm3.h |
376f8f68 | 105 | xm-mipsv4.h |
89e04499 | 106 | xm-news-mips.h |
7f6175b4 | 107 | xm-riscos.h |
b0cb2d91 | 108 | |
87756e15 | 109 | Things-to-lose: |
9ffd1eab MS |
110 | r3900.mt |
111 | r3900l.mt | |
112 | tm-r3900.h | |
113 | tm-r3900l.h | |
775d4a40 | 114 | |
b0cb2d91 FF |
115 | Do-last: |
116 | ||
188c635f SG |
117 | if ( echo $* | grep keep\-gm > /dev/null ) ; then |
118 | for i in * ; do | |
119 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
120 | if [ -n "${verbose}" ] ; then | |
121 | echo Keeping gm stuff in $i | |
122 | fi | |
123 | fi | |
124 | done | |
125 | else | |
126 | for i in * ; do | |
127 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
128 | if [ -n "${verbose}" ] ; then | |
129 | echo Removing traces of \"gm\" from $i... | |
130 | fi | |
131 | cp $i new | |
132 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
133 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
134 | if [ -n "${verbose}" ] ; then | |
135 | echo Caching $i in .Recover... | |
136 | fi | |
137 | mv $i .Recover | |
138 | fi | |
139 | mv new $i | |
140 | fi | |
141 | done | |
142 | fi | |
143 | ||
b0cb2d91 | 144 | # End of file. |