Tweak ./boot
authorIan Lynagh <igloo@earth.li>
Fri, 8 May 2009 23:02:36 +0000 (23:02 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 8 May 2009 23:02:36 +0000 (23:02 +0000)
boot

diff --git a/boot b/boot
index 0cdee98..9c5f1c5 100644 (file)
--- a/boot
+++ b/boot
@@ -56,7 +56,7 @@ for f in $libraries; do
        else
            stage=1
        fi
        else
            stage=1
        fi
-       top=`echo $f | sed "s/[^/]*/../g"`
+       top=`echo $f | sed 's#[^/]\+#..#g'`
        echo "${f}_PACKAGE = ${pkg}" >> $f/ghc.mk
        echo "\$(eval \$(call build-package,${f},dist-install,${stage}))" >> $f/ghc.mk
        rm -f $f/GNUmakefile
        echo "${f}_PACKAGE = ${pkg}" >> $f/ghc.mk
        echo "\$(eval \$(call build-package,${f},dist-install,${stage}))" >> $f/ghc.mk
        rm -f $f/GNUmakefile