1 | : Use /bin/sh |
---|
2 | # |
---|
3 | # $Id: Makekit,v 1.1.1.1 1997-09-03 21:08:11 ghudson Exp $ |
---|
4 | # |
---|
5 | # Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA |
---|
6 | # All rights reserved. |
---|
7 | # |
---|
8 | # Redistribution and use in source and binary forms, with or without |
---|
9 | # modification, are permitted provided that the following conditions |
---|
10 | # are met: |
---|
11 | # |
---|
12 | # 1. Redistributions of source code must retain the above copyright |
---|
13 | # notice, this list of conditions and the following disclaimer. |
---|
14 | # 2. Redistributions in binary form must reproduce the above copyright |
---|
15 | # notice, this list of conditions and the following disclaimer in the |
---|
16 | # documentation and/or other materials provided with the distribution. |
---|
17 | # 3. All modifications to the source code must be clearly marked as |
---|
18 | # such. Binary redistributions based on modified source code |
---|
19 | # must be clearly marked as modified versions in the documentation |
---|
20 | # and/or other materials provided with the distribution. |
---|
21 | # 4. All advertising materials mentioning features or use of this software |
---|
22 | # must display the following acknowledgment: |
---|
23 | # This product includes software developed by Geoff Kuenning and |
---|
24 | # other unpaid contributors. |
---|
25 | # 5. The name of Geoff Kuenning may not be used to endorse or promote |
---|
26 | # products derived from this software without specific prior |
---|
27 | # written permission. |
---|
28 | # |
---|
29 | # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND |
---|
30 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
31 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
32 | # ARE DISCLAIMED. IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE |
---|
33 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
---|
34 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
---|
35 | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
---|
36 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
---|
37 | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
---|
38 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
---|
39 | # SUCH DAMAGE. |
---|
40 | # |
---|
41 | # Make an ispell distribution kit. This is not a clever script, |
---|
42 | # just a handy one. |
---|
43 | # |
---|
44 | # Usage: |
---|
45 | # |
---|
46 | # Makekit [-c] [-d destdir] [-e] |
---|
47 | # |
---|
48 | # destdir is the directory in which the kits will be made; you will |
---|
49 | # want to pick someplace that has lots of space. |
---|
50 | # |
---|
51 | # If -e is specified, the list of files in the kit is echoed to |
---|
52 | # stdout and no kit is made. |
---|
53 | # |
---|
54 | # If -c is specified, the intermediate dictionary files are cleaned up. |
---|
55 | # |
---|
56 | # $Log: not supported by cvs2svn $ |
---|
57 | # Revision 1.39 1995/10/11 04:58:07 geoff |
---|
58 | # Add the Portuguese language files |
---|
59 | # |
---|
60 | # Revision 1.38 1995/01/15 00:54:45 geoff |
---|
61 | # Add iwhich and the new Spanish support |
---|
62 | # |
---|
63 | # Revision 1.37 1994/05/18 02:56:25 geoff |
---|
64 | # Remember to list dictionaries with the -e switch |
---|
65 | # |
---|
66 | # Revision 1.36 1994/04/27 02:58:42 geoff |
---|
67 | # Add the new English-dialect Makefiles |
---|
68 | # |
---|
69 | # Revision 1.35 1994/02/07 08:39:49 geoff |
---|
70 | # Don't delete everything when we're only echoing names |
---|
71 | # |
---|
72 | # Revision 1.34 1994/01/25 08:51:16 geoff |
---|
73 | # Get rid of all old RCS log lines in preparation for the 3.1 release. |
---|
74 | # |
---|
75 | # |
---|
76 | posting=3.1 |
---|
77 | maxsize=60000 # This leaves room for some headers |
---|
78 | clean=false |
---|
79 | destdir=kits |
---|
80 | echolist=false |
---|
81 | PATH=`pwd`:$PATH; export PATH |
---|
82 | USAGE="Usage: Makekit [-c] [-d destdir] [-e]" |
---|
83 | |
---|
84 | while [ $# -gt 0 ] |
---|
85 | do |
---|
86 | case "$1" in |
---|
87 | -c) |
---|
88 | clean=true |
---|
89 | shift |
---|
90 | ;; |
---|
91 | -d) |
---|
92 | destdir="$2" |
---|
93 | shift; shift |
---|
94 | ;; |
---|
95 | -e) |
---|
96 | echolist=true |
---|
97 | shift |
---|
98 | ;; |
---|
99 | *) |
---|
100 | echo "$USAGE" 1>&2 |
---|
101 | exit 1 |
---|
102 | ;; |
---|
103 | esac |
---|
104 | done |
---|
105 | |
---|
106 | case "$destdir" in |
---|
107 | /*) |
---|
108 | ;; |
---|
109 | *) |
---|
110 | destdir=`pwd`/$destdir |
---|
111 | ;; |
---|
112 | esac |
---|
113 | |
---|
114 | flist=' |
---|
115 | Contributors |
---|
116 | README |
---|
117 | Magiclines |
---|
118 | Makefile |
---|
119 | Makekit |
---|
120 | Makepatch |
---|
121 | WISHES |
---|
122 | buildhash.c |
---|
123 | config.X |
---|
124 | correct.c |
---|
125 | defmt.c |
---|
126 | dump.c |
---|
127 | fields.3 |
---|
128 | fields.c |
---|
129 | fields.h |
---|
130 | findaffix.X |
---|
131 | good.c |
---|
132 | hash.c |
---|
133 | icombine.c |
---|
134 | ijoin.c |
---|
135 | ishar |
---|
136 | ispell.1X |
---|
137 | ispell.4 |
---|
138 | ispell.c |
---|
139 | ispell.el |
---|
140 | ispell.h |
---|
141 | ispell.texinfo |
---|
142 | iwhich |
---|
143 | local.h.samp |
---|
144 | lookup.c |
---|
145 | makedict.sh |
---|
146 | makedent.c |
---|
147 | makeshar |
---|
148 | munchlist.X |
---|
149 | parse.y |
---|
150 | proto.h |
---|
151 | splitdict |
---|
152 | sq.1 |
---|
153 | sq.c |
---|
154 | subset.X |
---|
155 | term.c |
---|
156 | tgood.c |
---|
157 | tree.c |
---|
158 | tryaffix.X |
---|
159 | unsq.c |
---|
160 | version.h |
---|
161 | xgets.c |
---|
162 | zapdups.X |
---|
163 | languages/Makefile |
---|
164 | languages/Where |
---|
165 | languages/fix8bit.c |
---|
166 | languages/altamer/Makefile |
---|
167 | languages/american/Makefile |
---|
168 | languages/british/Makefile |
---|
169 | languages/dansk/Makefile |
---|
170 | languages/dansk/dansk.7bit |
---|
171 | languages/deutsch/Makefile |
---|
172 | languages/deutsch/deutsch.7bit |
---|
173 | languages/deutsch/deutsch-alt.7bit |
---|
174 | languages/english/Makefile |
---|
175 | languages/english/english.4l |
---|
176 | languages/english/english.aff |
---|
177 | languages/english/msgs.h |
---|
178 | languages/espanol/Makefile |
---|
179 | languages/espanol/castellano.7bit |
---|
180 | languages/espanol/espanol.7bit |
---|
181 | languages/francais/Makefile |
---|
182 | languages/francais/francais.7bit |
---|
183 | languages/francais/francais-alt.7bit |
---|
184 | languages/nederlands/Makefile |
---|
185 | languages/nederlands/nederlands.7bit |
---|
186 | languages/norsk/Makefile |
---|
187 | languages/norsk/norsk.7bit |
---|
188 | languages/portugues/Makefile |
---|
189 | languages/portugues/portugues.aff |
---|
190 | languages/svenska/Makefile |
---|
191 | languages/svenska/svenska.7bit |
---|
192 | addons/nextispell/Makefile |
---|
193 | addons/nextispell/README |
---|
194 | addons/nextispell/configure |
---|
195 | addons/nextispell/configure.h.template |
---|
196 | addons/nextispell/configureTeX |
---|
197 | addons/nextispell/nextispell.m |
---|
198 | addons/nextispell/services.template |
---|
199 | addons/xspell.shar |
---|
200 | ' |
---|
201 | |
---|
202 | if $echolist |
---|
203 | then |
---|
204 | echo $flist |
---|
205 | echo languages/english/*.[0-3] |
---|
206 | exit 0 |
---|
207 | fi |
---|
208 | |
---|
209 | [ -d "$destdir" ] || mkdir "$destdir" |
---|
210 | rm -f $destdir/Post${posting}.??.shar |
---|
211 | |
---|
212 | # |
---|
213 | # Make the main shar files |
---|
214 | # |
---|
215 | cursize=0 |
---|
216 | files= |
---|
217 | chmod +x makeshar ishar |
---|
218 | sharno=`makeshar -n -m $maxsize -o $destdir/Post${posting}. -pX $flist` |
---|
219 | |
---|
220 | # |
---|
221 | # Set up to make dictionary files |
---|
222 | # |
---|
223 | |
---|
224 | chmod +x splitdict |
---|
225 | [ -d "$destdir/languages" ] || mkdir "$destdir/languages" |
---|
226 | |
---|
227 | # |
---|
228 | # Make the English dictionaries |
---|
229 | # |
---|
230 | [ -d "$destdir/languages/english" ] || mkdir "$destdir/languages/english" |
---|
231 | rm -f $destdir/languages/english/*.?.?? |
---|
232 | |
---|
233 | ./splitdict $maxsize languages/english/english.0 \ |
---|
234 | $destdir/languages/english/eng.0. |
---|
235 | ./splitdict $maxsize languages/english/english.1 \ |
---|
236 | $destdir/languages/english/eng.1. |
---|
237 | ./splitdict $maxsize languages/english/english.2 \ |
---|
238 | $destdir/languages/english/eng.2. |
---|
239 | ./splitdict $maxsize languages/english/english.3 \ |
---|
240 | $destdir/languages/english/eng.3. |
---|
241 | ./splitdict $maxsize languages/english/american.0 \ |
---|
242 | $destdir/languages/english/amer.0. |
---|
243 | ./splitdict $maxsize languages/english/american.1 \ |
---|
244 | $destdir/languages/english/amer.1. |
---|
245 | ./splitdict $maxsize languages/english/american.2 \ |
---|
246 | $destdir/languages/english/amer.2. |
---|
247 | ./splitdict $maxsize languages/english/altamer.0 \ |
---|
248 | $destdir/languages/english/altamer.0. |
---|
249 | ./splitdict $maxsize languages/english/altamer.1 \ |
---|
250 | $destdir/languages/english/altamer.1. |
---|
251 | ./splitdict $maxsize languages/english/altamer.2 \ |
---|
252 | $destdir/languages/english/altamer.2. |
---|
253 | ./splitdict $maxsize languages/english/british.0 \ |
---|
254 | $destdir/languages/english/brit.0. |
---|
255 | ./splitdict $maxsize languages/english/british.1 \ |
---|
256 | $destdir/languages/english/brit.1. |
---|
257 | ./splitdict $maxsize languages/english/british.2 \ |
---|
258 | $destdir/languages/english/brit.2. |
---|
259 | |
---|
260 | sharno=`expr $sharno + 1` |
---|
261 | cd $destdir |
---|
262 | makeshar -f $sharno -m $maxsize -o $destdir/Post${posting}. -pX \ |
---|
263 | languages/english/eng.?.?? languages/english/amer.?.?? \ |
---|
264 | languages/english/altamer.?.?? languages/english/brit.?.?? |
---|
265 | if $clean |
---|
266 | then |
---|
267 | rm -f $destdir/languages/english/*.?.?? |
---|
268 | fi |
---|