#!/bin/sh # Runs inside the chroot set up by buildchroot, as the user it creates set -e cd rm -rf .ghc .cabal cabal update cabal install happy alex --bindir=$HOME/bin PATH=$HOME/bin:$PATH export PATH git clone https://github.com/joeyh/ghc-android cd ghc-android git checkout stable-ghc-snapshot ./build