Skip to content
Snippets Groups Projects
Commit eb5afeaa authored by Ian Lynagh's avatar Ian Lynagh
Browse files

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.
parent fe6a2136
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ case $* in ...@@ -14,7 +14,7 @@ case $* in
do do
LIBPATH=`echo "$HADDOCK_FILE" | sed 's#/dist-install.*##'` LIBPATH=`echo "$HADDOCK_FILE" | sed 's#/dist-install.*##'`
NAME=`echo "$HADDOCK_FILE" | sed 's#.*/##' | sed 's#\.haddock$##'` 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_ARG="--read-interface=${NAME}-${VERSION},$HADDOCK_FILE"
HADDOCK_ARGS="$HADDOCK_ARGS $HADDOCK_ARG" HADDOCK_ARGS="$HADDOCK_ARGS $HADDOCK_ARG"
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment