summaryrefslogtreecommitdiff
path: root/libraries/gen_contents_index
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-11-17 22:35:56 +0000
committerIan Lynagh <igloo@earth.li>2009-11-17 22:35:56 +0000
commiteb5afeaafb257eb8beddcb142659b06bdcecb2ad (patch)
tree450ae50df7eb1b91705a9f9d58a208f7442e5123 /libraries/gen_contents_index
parentfe6a2136916bb76b95b4bc289a068728fcab41f5 (diff)
downloadhaskell-eb5afeaafb257eb8beddcb142659b06bdcecb2ad.tar.gz
Fix gen_contents_index on MSYS
On MSYS sed 's/.*[ \t]//' wasn't matching version:<tab>1.0 so I've switched to 's/.*[[:space:]]//' which works on Linux, cygwin and MSYS.
Diffstat (limited to 'libraries/gen_contents_index')
-rw-r--r--libraries/gen_contents_index2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/gen_contents_index b/libraries/gen_contents_index
index e189cac8ee..59f59dd93f 100644
--- a/libraries/gen_contents_index
+++ b/libraries/gen_contents_index
@@ -14,7 +14,7 @@ case $* in
do
LIBPATH=`echo "$HADDOCK_FILE" | sed 's#/dist-install.*##'`
NAME=`echo "$HADDOCK_FILE" | sed 's#.*/##' | sed 's#\.haddock$##'`
- VERSION=`grep -i '^version:' $LIBPATH/$NAME.cabal | sed 's/.*[ \t]//'`
+ VERSION=`grep -i '^version:' $LIBPATH/$NAME.cabal | sed 's/.*[[:space:]]//'`
HADDOCK_ARG="--read-interface=${NAME}-${VERSION},$HADDOCK_FILE"
HADDOCK_ARGS="$HADDOCK_ARGS $HADDOCK_ARG"
done