#! perl -nwl

$target='/var/tmp/kenta/hdd/ghc/afs/sipb.mit.edu/project/ghc/arch/amd64_ubuntu1404/install/8.0.1-lts-7.16-a';

$cabalhome="$target/workarea/home";
$cconfig="$cabalhome/.cabal/config";

$cmd="HOME=$cabalhome PATH=$target/bin:\$PATH $target/bin/cabal --config-file=$cconfig install -p --global --prefix=$target --dry-run --verbose=1 $_ > dry-$_.out 2>&1";
print$cmd;

# feed to deal-lines.hs
