mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +03:00
a94ab9d97c
Towards #1689 ![sublibrary-graph](https://github.com/swarm-game/swarm/assets/261693/b300fb0d-be59-4fc9-a042-04ceaf4909b2)
19 lines
548 B
Bash
Executable File
19 lines
548 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd $SCRIPT_DIR/..
|
|
|
|
# First, install cabal-plan:
|
|
#
|
|
# cabal install cabal-plan
|
|
|
|
|
|
# If the swarm.cabal file has changed, you may need to remove
|
|
# the 'plan.json' file from the cache and regenerate.
|
|
#
|
|
# Note that "rm -f dist-newstyle/cache/plan.json" is insufficient;
|
|
# we need remove the whole cache:
|
|
rm -r dist-newstyle/cache
|
|
cabal build
|
|
|
|
cabal-plan --hide-global --hide-builtin dot --tred --root swarm | twopi -Tsvg -o docs/image/sublibrary-graph.svg |