mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +03:00
Encountered this bug: https://github.com/commercialhaskell/stack/issues/5254#issuecomment-1874622685 Fixed by using `cabal` to generate haddocks instead of `stack`. Also bumped `cabal-version` to latest and adjusted `swarm.cabal` to conform.
12 lines
298 B
Bash
Executable File
12 lines
298 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
cd $SCRIPT_DIR/..
|
|
|
|
cabal haddock
|
|
|
|
OUTPUT_BASE_DIR=$(cabal list-bin swarm | grep -o '.*/x/' | head -c-3)
|
|
SWARM_HADDOCK_INDEX=$OUTPUT_BASE_DIR/doc/html/swarm/index.html
|
|
|
|
google-chrome $SWARM_HADDOCK_INDEX
|