1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/textproc/ispell/scripts/configure
1995-02-07 02:41:52 +00:00

17 lines
451 B
Bash

#!/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;