Commit | Line | Data |
---|---|---|
b2c17b4c | 1 | # .Sanitize for devo/config |
b6597455 SS |
2 | |
3 | # Each directory to survive its way into a release will need a file | |
0fd8d5d9 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 | |
b6597455 | 14 | # done in this directory. |
0fd8d5d9 RP |
15 | |
16 | Do-first: | |
17 | ||
276c2d7d GRK |
18 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
19 | keep_these_too="${keep_these_too} mt-r5900" | |
20 | else | |
21 | lose_these_too="${lose_these_too} mt-r5900" | |
22 | fi | |
23 | ||
5266a484 | 24 | if ( echo $* | grep lose\-mswin > /dev/null ) ; then |
043fadbe | 25 | lose_these_too="${lose_these_too} mh-windows" |
5266a484 FF |
26 | else |
27 | keep_these_too="${keep_these_too} mh-windows" | |
043fadbe FF |
28 | fi |
29 | ||
66f3fbe1 | 30 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
debeb164 | 31 | keep_these_too="${keep_these_too} mt-sky mt-skyb" |
66f3fbe1 | 32 | else |
debeb164 | 33 | lose_these_too="${lose_these_too} mt-sky mt-skyb" |
66f3fbe1 DE |
34 | fi |
35 | ||
0fd8d5d9 | 36 | # All files listed between the "Things-to-keep:" line and the |
b2c17b4c | 37 | # "Do-last:" line will be kept. All other files will be removed. |
0fd8d5d9 RP |
38 | # Directories listed in this section will have their own Sanitize |
39 | # called. Directories not listed will be removed in their entirety | |
40 | # with rm -rf. | |
41 | ||
42 | Things-to-keep: | |
43 | ||
a19cc981 | 44 | ChangeLog |
70faae66 | 45 | mh-a68bsd |
04947ce1 | 46 | mh-aix386 |
734fb33c | 47 | mh-aix43 |
d96234d2 | 48 | mh-apollo68 |
d4e36233 | 49 | mh-cxux |
354a246b | 50 | mh-cygwin |
dd1f25e0 | 51 | mh-decstation |
1f2f0a94 SC |
52 | mh-delta88 |
53 | mh-dgux | |
32731d2b | 54 | mh-dgux386 |
0186b094 | 55 | mh-elfalphapic |
eebd76cb | 56 | mh-go32 |
a9cad591 | 57 | mh-hp300 |
1b05371e | 58 | mh-hpux |
3cbb8192 | 59 | mh-hpux8 |
407a8389 | 60 | mh-irix4 |
aab15bdb | 61 | mh-irix5 |
f3eca1ac | 62 | mh-irix6 |
4677e30f | 63 | mh-lynxos |
461004f3 | 64 | mh-lynxrs6k |
0e1ad456 | 65 | mh-m68kpic |
0b0bd98b | 66 | mh-mingw32 |
b0680d31 | 67 | mh-ncr3000 |
d376e43b | 68 | mh-ncrsvr43 |
e4115748 | 69 | mh-necv4 |
6764c4cd | 70 | mh-papic |
897832ee | 71 | mh-ppcpic |
7bf617cf | 72 | mh-riscos |
77e4df42 | 73 | mh-sco |
4358b911 | 74 | mh-solaris |
6764c4cd | 75 | mh-sparcpic |
97c86946 | 76 | mh-sun3 |
1f2f0a94 | 77 | mh-sysv |
18ab66f2 | 78 | mh-sysv4 |
21191d34 | 79 | mh-sysv5 |
d3c06c91 | 80 | mh-vaxult2 |
6764c4cd | 81 | mh-x86pic |
a528763a | 82 | mpw |
3c7c1a88 | 83 | mpw-mh-mpw |
0186b094 | 84 | mt-elfalphapic |
232e4b35 | 85 | mt-linux |
0e1ad456 | 86 | mt-m68kpic |
6764c4cd | 87 | mt-netware |
b2c17b4c | 88 | mt-ospace |
45329a2c | 89 | mt-papic |
897832ee | 90 | mt-ppcpic |
45329a2c | 91 | mt-sparcpic |
6764c4cd JM |
92 | mt-v810 |
93 | mt-x86pic | |
0fd8d5d9 | 94 | |
87756e15 | 95 | Things-to-lose: |
c5a81aaf | 96 | acinclude.m4 |
b2c17b4c ILT |
97 | |
98 | ||
99 | # The lines between the "Do-last:" line and the end of the file | |
100 | # are executed as a /bin/sh shell script after everything else is | |
101 | # done. | |
102 | ||
63e79660 | 103 | Do-last: |
0fd8d5d9 | 104 | |
54d5e0fb | 105 | r5900_files="ChangeLog" |
54d5e0fb AMT |
106 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
107 | for i in $r5900_files ; do | |
108 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
109 | if [ -n "${verbose}" ] ; then | |
110 | echo Keeping r5900 stuff in $i | |
111 | fi | |
112 | fi | |
113 | done | |
114 | else | |
115 | for i in $r5900_files ; do | |
116 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
117 | if [ -n "${verbose}" ] ; then | |
118 | echo Removing traces of \"r5900\" from $i... | |
119 | fi | |
120 | cp $i new | |
121 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
122 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
123 | if [ -n "${verbose}" ] ; then | |
124 | echo Caching $i in .Recover... | |
125 | fi | |
126 | mv $i .Recover | |
127 | fi | |
128 | mv new $i | |
129 | fi | |
130 | done | |
131 | fi | |
132 | ||
66f3fbe1 DE |
133 | sky_files="ChangeLog" |
134 | if ( echo $* | grep keep\-sky > /dev/null ) ; then | |
135 | for i in $sky_files ; do | |
136 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
137 | if [ -n "${verbose}" ] ; then | |
138 | echo Keeping sky stuff in $i | |
139 | fi | |
140 | fi | |
141 | done | |
142 | else | |
143 | for i in $sky_files ; do | |
144 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
145 | if [ -n "${verbose}" ] ; then | |
146 | echo Removing traces of \"sky\" from $i... | |
147 | fi | |
148 | cp $i new | |
149 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new | |
150 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
151 | if [ -n "${verbose}" ] ; then | |
152 | echo Caching $i in .Recover... | |
153 | fi | |
154 | mv $i .Recover | |
155 | fi | |
156 | mv new $i | |
157 | fi | |
158 | done | |
159 | fi | |
160 | ||
6cd41c5e | 161 | cygnus_files="mh-go32" |
6cd41c5e ILT |
162 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then |
163 | for i in $cygnus_files ; do | |
164 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
165 | if [ -n "${verbose}" ] ; then | |
166 | echo Keeping cygnus stuff in $i | |
167 | fi | |
168 | fi | |
169 | done | |
170 | else | |
171 | for i in $cygnus_files ; do | |
172 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
173 | if [ -n "${verbose}" ] ; then | |
174 | echo Removing traces of \"cygnus\" from $i... | |
175 | fi | |
176 | cp $i new | |
177 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new | |
178 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
179 | if [ -n "${verbose}" ] ; then | |
180 | echo Caching $i in .Recover... | |
181 | fi | |
182 | mv $i .Recover | |
183 | fi | |
184 | mv new $i | |
185 | fi | |
186 | done | |
187 | fi | |
54d5e0fb | 188 | |
b2c17b4c | 189 | # eof |