summaryrefslogtreecommitdiff
path: root/textproc/ispell/scripts/configure
blob: 8d520117a3296e4fd5c72d8703afeb616a7a0c75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

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
cd $WRKSRC || exit 1;

sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
echo '#define LANGUAGES "{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}"'  >>local.h ||exit 1;

mv Makefile Makefile.orig
sed -e 's/^[ 	]*$/\
/' <Makefile.orig >Makefile

exit 0;