libraries=
-tarred="time"
+tarred=`ls -1 libraries/tarballs | sed "s/-[0-9.]*\(-snapshot\)\{0,1\}.tar.gz//"`
for p in $tarred
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