X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=boot;h=43d2db5c0f1be859cca7706f8bd3d3c7e1c11f2d;hb=4fa44a3ae9c36222ccb460ba3ed24e46bf7c70ae;hp=d586348de75670f94f02dbd94e95003b6b1700e6;hpb=34cc75e1a62638f2833815746ebce0a9114dc26b;p=ghc-hetmet.git diff --git a/boot b/boot index d586348..43d2db5 100644 --- a/boot +++ b/boot @@ -1,6 +1,9 @@ #! /bin/sh set -e +# Create libraries/*/{ghc.mk,GNUmakefile} +sh boot-pkgs + # Check that we have all boot packages. for dir in `grep "^[^# ][^ ]* *[^ ][^ ]* *[^ ][^ ]*$" packages | sed "s/ .*//"` do @@ -30,20 +33,3 @@ do chmod +x $f fi done - -for f in libraries/*; do - dir=`basename $f` - cabals=`echo $f/*.cabal` - if test -f $cabals; then - echo "Creating $f/ghc.mk" - rm -f $f/ghc.mk - pkg=`basename ${cabals%.cabal}` - echo "${f}_PACKAGE = ${pkg}" >> $f/ghc.mk - echo "\$(eval \$(call build-package,${f},dist-install,1))" >> $f/ghc.mk - rm -f $f/GNUmakefile - echo "Creating $f/GNUmakefile" - echo "dir = ${f}" >> $f/GNUmakefile - echo "TOP = ../.." >> $f/GNUmakefile - echo "include \$(TOP)/mk/sub-makefile.mk" >> $f/GNUmakefile - fi -done