1994-11-06 02:13:04 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
1995-02-07 02:41:52 +00:00
|
|
|
if [ "`echo a|sed -e P`" = "aa" ]; then
|
|
|
|
echo You need a newer version of sed. Use sed from -current or gnu sed
|
|
|
|
exit 1
|
|
|
|
fi
|
1995-09-23 20:50:15 +00:00
|
|
|
if [ ! -f /usr/share/dict/words ]; then
|
|
|
|
echo "you need to install /usr/share/dict/words from the 'dict' distribution first"
|
|
|
|
exit 1
|
|
|
|
fi
|
1994-11-06 02:13:04 +00:00
|
|
|
cd $WRKSRC || exit 1;
|
|
|
|
|
|
|
|
sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
|
1995-03-07 14:41:48 +00:00
|
|
|
echo "#undef NO8BIT" >> local.h
|
2000-02-11 17:08:00 +00:00
|
|
|
if [ ! -z "$ISPELL_BRITISH" ] && \
|
|
|
|
[ "$ISPELL_BRITISH" = "YES" -o "$ISPELL_BRITISH" = "yes" ]; then
|
1995-07-21 13:22:21 +00:00
|
|
|
echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=}$LOCAL\"" >>local.h ||exit 1;
|
|
|
|
echo '#define MASTERHASH "britishxlg.hash"' >> local.h
|
2000-02-11 17:08:00 +00:00
|
|
|
else
|
1995-07-21 13:22:21 +00:00
|
|
|
echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1;
|
2000-02-11 17:08:00 +00:00
|
|
|
fi
|
1995-07-21 13:22:21 +00:00
|
|
|
|
1995-04-19 19:51:29 +00:00
|
|
|
echo "#undef WORDS" >> local.h
|
|
|
|
echo '#define WORDS "/usr/share/dict/words"' >> local.h
|
1995-07-11 01:46:28 +00:00
|
|
|
echo '#undef ELISPDIR' >> local.h
|
|
|
|
echo "#define ELISPDIR \"$PREFIX/share/emacs/site-lisp\"" >> local.h
|
2000-01-28 00:08:56 +00:00
|
|
|
echo "#undef LIBDIR" >> local.h
|
|
|
|
echo "#define LIBDIR \"$PREFIX/share/ispell\"" >> local.h
|
1994-11-06 02:13:04 +00:00
|
|
|
|
1995-02-06 15:07:47 +00:00
|
|
|
mv Makefile Makefile.orig
|
|
|
|
sed -e 's/^[ ]*$/\
|
1999-12-08 00:29:51 +00:00
|
|
|
/' -e 's/[ ]*ELISPDIR//' <Makefile.orig >Makefile
|
1995-02-06 15:07:47 +00:00
|
|
|
|
1994-11-06 02:13:04 +00:00
|
|
|
exit 0;
|