Commit 106fa9a3 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Better error message if running build.sh from outside cabal dir

parent 7d21ac42
......@@ -2,7 +2,13 @@
set -e
# Verify that we're in the IHaskell directory.
test -f "ihaskell.cabal"
if [ ! -e ihaskell.cabal ]; then
echo "Run build.sh from inside the IHaskell directory:"
echo " ./build.sh all # Install IHaskell and deps (use if first install)"
echo " ./build.sh # Install only IHaskell, no deps"
echo " ./build.sh display # Install IHaskell and display libraries"
exit 1
fi
# What to install.
INSTALLS=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment