Configure
wsh/binsrc/split/Configure · 482 B
From the archive wsh-147.tar.gz
Download the archive « Back to the archive contents
#!/bin/sh
# Script to configure the tcp part of the shawing package
CFLAGS=
MAKE="echo \"Done. Type 'make' to build\""
echo "Making configuration..."
while [ $# -gt 0 ]
do case $1 in
-d) CFLAGS=-DDEBUG
echo "Configuring for debug mode."
shift;;
-m) MAKE=make
shift;;
*) echo "Usage: Configure [-d] [-m]"
exit;;
esac
done
cc $CFLAGS -o config config.c
if ./config
then eval $MAKE
fi
rm -f config