Commit 95e15aff authored by Andrew Gibiansky's avatar Andrew Gibiansky

fixing build.sh

parent df7625e8
#!/bin/bash
set -e
# Recompile ipython-kernel
cd ipython-kernel
cabal clean
cabal install --force-reinstalls
cd ..
# Verify that we're in the IHaskell directory.
test -f "ihaskell.cabal"
# What to install.
INSTALLS=""
# Make the profile
cd profile
......@@ -14,33 +13,41 @@ rm -f profile.tar
tar -cvf profile.tar *
cd ..
# Remove my profile
rm -rf ~/.ipython/profile_haskell
# Compile dependencies.
if [ $# -gt 0 ]; then
if [ $1 = "all" ]; then
cd ghc-parser;
cabal install --force-reinstalls;
cd ../ghci-lib;
cabal install --force-reinstalls;
cd ..;
INSTALLS="$INSTALLS ipython-kernel ghc-parser ghci-lib"
fi
fi
# Make ihaskell itself
cabal clean
cabal install --force-reinstalls
# Remove my profile
rm -rf ~/.ipython/profile_haskell
INSTALLS="$INSTALLS ."
# Install ihaskell-display packages.
if [ $# -gt 0 ]; then
if [ $1 = "display" ]; then
# Install all the display libraries
cd ihaskell-display
for dir in `ls`
do
cd $dir
cabal clean
cabal install
cd ..
INSTALLS="$INSTALLS ihaskell-display/$dir"
done
cd ..
fi
fi
# Clean all required directories, just in case.
TOP=`pwd`
for pkg in $INSTALLS
do
cd ./$pkg
cabal clean
cd $TOP
done
# Stick a "./" before everything.
INSTALL_DIRS=`echo $INSTALLS | tr ' ' '\n' | sed 's#^#./#' | tr ' ' '\n'`
cabal install $INSTALL_DIRS --force-reinstalls
......@@ -62,6 +62,7 @@ library
classy-prelude >=0.7,
aeson,
aeson-pretty,
chunked-data >=0.1,
ihaskell >= 0.3
-- Directories containing source files.
......
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