Commit | Line | Data |
---|---|---|
3c7c1a88 | 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 | ||
0fd8d5d9 RP |
30 | # All files listed between the "Things-to-keep:" line and the |
31 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
32 | # Directories listed in this section will have their own Sanitize | |
33 | # called. Directories not listed will be removed in their entirety | |
34 | # with rm -rf. | |
35 | ||
36 | Things-to-keep: | |
37 | ||
a19cc981 | 38 | ChangeLog |
70faae66 | 39 | mh-a68bsd |
04947ce1 | 40 | mh-aix386 |
d96234d2 | 41 | mh-apollo68 |
d4e36233 | 42 | mh-cxux |
48240671 | 43 | mh-cygwin32 |
dd1f25e0 | 44 | mh-decstation |
1f2f0a94 SC |
45 | mh-delta88 |
46 | mh-dgux | |
32731d2b | 47 | mh-dgux386 |
0186b094 | 48 | mh-elfalphapic |
eebd76cb | 49 | mh-go32 |
a9cad591 | 50 | mh-hp300 |
1b05371e | 51 | mh-hpux |
3cbb8192 | 52 | mh-hpux8 |
407a8389 | 53 | mh-irix4 |
aab15bdb | 54 | mh-irix5 |
f3eca1ac | 55 | mh-irix6 |
4677e30f | 56 | mh-lynxos |
461004f3 | 57 | mh-lynxrs6k |
0e1ad456 | 58 | mh-m68kpic |
0b0bd98b | 59 | mh-mingw32 |
b0680d31 | 60 | mh-ncr3000 |
d376e43b | 61 | mh-ncrsvr43 |
e4115748 | 62 | mh-necv4 |
6764c4cd | 63 | mh-papic |
897832ee | 64 | mh-ppcpic |
7bf617cf | 65 | mh-riscos |
77e4df42 | 66 | mh-sco |
4358b911 | 67 | mh-solaris |
6764c4cd | 68 | mh-sparcpic |
97c86946 | 69 | mh-sun3 |
1f2f0a94 | 70 | mh-sysv |
18ab66f2 | 71 | mh-sysv4 |
21191d34 | 72 | mh-sysv5 |
d3c06c91 | 73 | mh-vaxult2 |
6764c4cd | 74 | mh-x86pic |
a528763a | 75 | mpw |
3c7c1a88 | 76 | mpw-mh-mpw |
0186b094 | 77 | mt-elfalphapic |
232e4b35 | 78 | mt-linux |
0e1ad456 | 79 | mt-m68kpic |
6764c4cd | 80 | mt-netware |
45329a2c | 81 | mt-papic |
897832ee | 82 | mt-ppcpic |
45329a2c | 83 | mt-sparcpic |
6764c4cd JM |
84 | mt-v810 |
85 | mt-x86pic | |
0fd8d5d9 | 86 | |
87756e15 RP |
87 | Things-to-lose: |
88 | ||
63e79660 | 89 | Do-last: |
0fd8d5d9 | 90 | |
54d5e0fb AMT |
91 | r5900_files="ChangeLog" |
92 | ||
93 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
94 | for i in $r5900_files ; do | |
95 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
96 | if [ -n "${verbose}" ] ; then | |
97 | echo Keeping r5900 stuff in $i | |
98 | fi | |
99 | fi | |
100 | done | |
101 | else | |
102 | for i in $r5900_files ; do | |
103 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
104 | if [ -n "${verbose}" ] ; then | |
105 | echo Removing traces of \"r5900\" from $i... | |
106 | fi | |
107 | cp $i new | |
108 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
109 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
110 | if [ -n "${verbose}" ] ; then | |
111 | echo Caching $i in .Recover... | |
112 | fi | |
113 | mv $i .Recover | |
114 | fi | |
115 | mv new $i | |
116 | fi | |
117 | done | |
118 | fi | |
119 | ||
6cd41c5e ILT |
120 | cygnus_files="mh-go32" |
121 | ||
122 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then | |
123 | for i in $cygnus_files ; do | |
124 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
125 | if [ -n "${verbose}" ] ; then | |
126 | echo Keeping cygnus stuff in $i | |
127 | fi | |
128 | fi | |
129 | done | |
130 | else | |
131 | for i in $cygnus_files ; do | |
132 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
133 | if [ -n "${verbose}" ] ; then | |
134 | echo Removing traces of \"cygnus\" from $i... | |
135 | fi | |
136 | cp $i new | |
137 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new | |
138 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
139 | if [ -n "${verbose}" ] ; then | |
140 | echo Caching $i in .Recover... | |
141 | fi | |
142 | mv $i .Recover | |
143 | fi | |
144 | mv new $i | |
145 | fi | |
146 | done | |
147 | fi | |
54d5e0fb | 148 | |
0fd8d5d9 | 149 | # End of file. |