summaryrefslogtreecommitdiff
path: root/boot-pkgs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-04-01 15:34:41 +0000
committerIan Lynagh <igloo@earth.li>2010-04-01 15:34:41 +0000
commit3c2a7fa6cf118f6e0fbda8babac7aff988574384 (patch)
tree14a9e530557de260dc98839b2b8c862430dd583c /boot-pkgs
parentdb9f94f7c3a82f04ca40b77d0c302ac8e11c7f32 (diff)
downloadhaskell-3c2a7fa6cf118f6e0fbda8babac7aff988574384.tar.gz
Fix boot-pkgs's sed usage to work with Solaris's sed
Diffstat (limited to 'boot-pkgs')
-rw-r--r--boot-pkgs4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot-pkgs b/boot-pkgs
index e4554269ba..017705b62c 100644
--- a/boot-pkgs
+++ b/boot-pkgs
@@ -3,7 +3,9 @@ set -e
libraries=
-tarred=`ls -1 libraries/tarballs | sed "s/-[0-9.]*\(-snapshot\)\{0,1\}.tar.gz//"`
+# We do the sed in 3 steps, as the -snapshot may or may not be there,
+# and I can't see a way to optionally match it with POSIX BREs
+tarred=`ls -1 libraries/tarballs | sed -e 's/\.tar\.gz$//' -e 's/-snapshot$//' -e 's/-[0-9.]*$//'`
for p in $tarred
do