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

Fix another sed problem on Solaris

parent d7081002
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,9 @@ case $* in ...@@ -14,7 +14,9 @@ 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/.*[[:space:]]//'` # It's easier to portably remove tabs with tr and to try to get
# sed to do what we want
VERSION=`grep -i '^version:' $LIBPATH/$NAME.cabal | sed 's/.*://'` | tr -d ' \t'
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