Check whether the main function is actually exported (#414)
[ghc-hetmet.git] / boot-pkgs
index 5bc6f6b..31ad53c 100644 (file)
--- a/boot-pkgs
+++ b/boot-pkgs
@@ -3,7 +3,7 @@ set -e
 
 libraries=
 
-tarred="time"
+tarred=`ls -1 libraries/tarballs | sed "s/-[0-9.]*\(-snapshot\)\{0,1\}.tar.gz//"`
 
 for p in $tarred
 do
@@ -53,7 +53,7 @@ for f in $libraries; do
        else
            stage=1
        fi
-       top=`echo $f | sed 's#[^/]\+#..#g'`
+       top=`echo $f | sed 's#[^/][^/]*#..#g'`
        echo "${f}_PACKAGE = ${pkg}" >> $f/ghc.mk
        echo "${f}_dist-install_GROUP = libraries" >> $f/ghc.mk
        echo "\$(eval \$(call build-package,${f},dist-install,${stage}))" >> $f/ghc.mk