diff options
author | Ian Lynagh <igloo@earth.li> | 2010-04-01 15:34:41 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-04-01 15:34:41 +0000 |
commit | 3c2a7fa6cf118f6e0fbda8babac7aff988574384 (patch) | |
tree | 14a9e530557de260dc98839b2b8c862430dd583c /boot-pkgs | |
parent | db9f94f7c3a82f04ca40b77d0c302ac8e11c7f32 (diff) | |
download | haskell-3c2a7fa6cf118f6e0fbda8babac7aff988574384.tar.gz |
Fix boot-pkgs's sed usage to work with Solaris's sed
Diffstat (limited to 'boot-pkgs')
-rw-r--r-- | boot-pkgs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |