#! /bin/sh
for i in *; do cat "$i" | fromdos | sed 's@@@g' > "|xx|"; mv "|xx|" "$i"; done
for i in *; do lc=`echo "$i" | dd conv=lcase 2>/dev/null`; ln -s "$i" "$lc"; done
ln -s MAKEFILE.IN Makefile.in
ln -s CONFIGUR configure
ln -s CONFIGUR.IN configure.in
chmod +x configure
sed 's@FILE \*errfdevice = .*;@FILE *errfdevice = NULL;@g;t;s@set all task pointers to NULL@&@;T; i if (errfdevice == NULL) errfdevice = stderr;' bwbasic.c > '|xx|'; mv '|xx|' bwbasic.c
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" && \
make && \
${installmonitor} make install || exit 1
|