Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (17 sloc) 319 Bytes
#!/bin/bash
#
if [ -e "Setup.lhs" ] ; then
filename="Setup.lhs"
elif [ -e "Setup.hs" ] ; then
filename="Setup.hs"
else
echo "No Cabal setup file found!"
exit 0
fi
runghc $filename configure
if [ $? -eq 0 ] ; then
runghc $filename build
if [ $? -eq 0 ] ; then
sudo runghc $filename install
fi
fi