source: trunk/third/ispell/Makekit @ 10334

Revision 10334, 7.0 KB checked in by ghudson, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10333, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
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#
76posting=3.1
77maxsize=60000           # This leaves room for some headers
78clean=false
79destdir=kits
80echolist=false
81PATH=`pwd`:$PATH; export PATH
82USAGE="Usage:  Makekit [-c] [-d destdir] [-e]"
83
84while [ $# -gt 0 ]
85do
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
104done
105
106case "$destdir" in
107    /*)
108        ;;
109    *)
110        destdir=`pwd`/$destdir
111        ;;
112esac
113
114flist='
115Contributors
116README
117Magiclines
118Makefile
119Makekit
120Makepatch
121WISHES
122buildhash.c
123config.X
124correct.c
125defmt.c
126dump.c
127fields.3
128fields.c
129fields.h
130findaffix.X
131good.c
132hash.c
133icombine.c
134ijoin.c
135ishar
136ispell.1X
137ispell.4
138ispell.c
139ispell.el
140ispell.h
141ispell.texinfo
142iwhich
143local.h.samp
144lookup.c
145makedict.sh
146makedent.c
147makeshar
148munchlist.X
149parse.y
150proto.h
151splitdict
152sq.1
153sq.c
154subset.X
155term.c
156tgood.c
157tree.c
158tryaffix.X
159unsq.c
160version.h
161xgets.c
162zapdups.X
163languages/Makefile
164languages/Where
165languages/fix8bit.c
166languages/altamer/Makefile
167languages/american/Makefile
168languages/british/Makefile
169languages/dansk/Makefile
170languages/dansk/dansk.7bit
171languages/deutsch/Makefile
172languages/deutsch/deutsch.7bit
173languages/deutsch/deutsch-alt.7bit
174languages/english/Makefile
175languages/english/english.4l
176languages/english/english.aff
177languages/english/msgs.h
178languages/espanol/Makefile
179languages/espanol/castellano.7bit
180languages/espanol/espanol.7bit
181languages/francais/Makefile
182languages/francais/francais.7bit
183languages/francais/francais-alt.7bit
184languages/nederlands/Makefile
185languages/nederlands/nederlands.7bit
186languages/norsk/Makefile
187languages/norsk/norsk.7bit
188languages/portugues/Makefile
189languages/portugues/portugues.aff
190languages/svenska/Makefile
191languages/svenska/svenska.7bit
192addons/nextispell/Makefile
193addons/nextispell/README
194addons/nextispell/configure
195addons/nextispell/configure.h.template
196addons/nextispell/configureTeX
197addons/nextispell/nextispell.m
198addons/nextispell/services.template
199addons/xspell.shar
200'
201
202if $echolist
203then
204    echo $flist
205    echo languages/english/*.[0-3]
206    exit 0
207fi
208
209[ -d "$destdir" ]  ||  mkdir "$destdir"
210rm -f $destdir/Post${posting}.??.shar
211
212#
213# Make the main shar files
214#
215cursize=0
216files=
217chmod +x makeshar ishar
218sharno=`makeshar -n -m $maxsize -o $destdir/Post${posting}. -pX $flist`
219
220#
221# Set up to make dictionary files
222#
223
224chmod +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"
231rm -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
260sharno=`expr $sharno + 1`
261cd $destdir
262makeshar -f $sharno -m $maxsize -o $destdir/Post${posting}. -pX \
263  languages/english/eng.?.?? languages/english/amer.?.?? \
264  languages/english/altamer.?.?? languages/english/brit.?.??
265if $clean
266then
267    rm -f $destdir/languages/english/*.?.??
268fi
Note: See TracBrowser for help on using the repository browser.