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

fixing build.sh

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