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;
|
|
|
|
|
1995-03-07 14:41:48 +00:00
|
|
|
if [ -f $WRKDIR/extra_dict ]; then
|
|
|
|
extra_dict=`cat $WRKDIR/extra_dict`;
|
|
|
|
case $extra_dict in
|
|
|
|
francais-IREQ*)
|
|
|
|
mkdir -p $WRKSRC/languages/francais-IREQ
|
|
|
|
LOCAL=' {francais-IREQ}'
|
|
|
|
for i in $WRKDIR/[A-Za-z]*; do
|
|
|
|
if [ -f $i ]; then cp $i $WRKSRC/languages/francais-IREQ/; fi
|
|
|
|
done
|
|
|
|
(echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo HASH=../../buildhash) \
|
|
|
|
>> $WRKSRC/languages/francais-IREQ/Makefile
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "I don't now how to configure ispell with $extra_dict"
|
|
|
|
exit 1;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
1995-07-21 13:22:21 +00:00
|
|
|
|
1994-11-06 02:13:04 +00:00
|
|
|
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
|
1995-07-21 13:22:21 +00:00
|
|
|
case $LANG in
|
|
|
|
british)
|
|
|
|
echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=}$LOCAL\"" >>local.h ||exit 1;
|
|
|
|
echo '#define MASTERHASH "britishxlg.hash"' >> local.h
|
|
|
|
break ;;
|
|
|
|
*)
|
|
|
|
echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1;
|
|
|
|
:;;
|
|
|
|
esac
|
|
|
|
|
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
|
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;
|