summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-05-06 01:04:45 +0000
committerIan Lynagh <igloo@earth.li>2009-05-06 01:04:45 +0000
commit6a0424c5df63b6f84c29b1dbf6412ffaf5279a54 (patch)
tree66e2d5652aa1e1503213281f7ad261b11f36e477 /boot
parent9000c679a8904a398022b96e01649120e024c615 (diff)
downloadhaskell-6a0424c5df63b6f84c29b1dbf6412ffaf5279a54.tar.gz
Use more portable shell in ./boot; fixes booting on Solaris
Diffstat (limited to 'boot')
-rw-r--r--boot2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot b/boot
index 2c2d88beb5..0cdee985f6 100644
--- a/boot
+++ b/boot
@@ -50,7 +50,7 @@ for f in $libraries; do
if test -f $cabals; then
echo "Creating $f/ghc.mk"
rm -f $f/ghc.mk
- pkg=`basename ${cabals%.cabal}`
+ pkg=`echo "$cabals" | sed -e 's#.*/##' -e 's#\.cabal$##'`
if test -f $f/ghc-stage; then
stage=`cat $f/ghc-stage`
else