summaryrefslogtreecommitdiff
path: root/utils/notes-util/check.sh
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-01-30 08:30:15 -0500
committerBen Gamari <ben@smart-cactus.org>2022-01-30 09:06:49 -0500
commit698967588e8d01d41dee66b39de19feb3bf6a483 (patch)
tree3216236c91f86c933903bbbb8cdcbd592a99735f /utils/notes-util/check.sh
parent2320ff67febd38d06cc8b6575817738baf40b4c3 (diff)
downloadhaskell-wip/note-check.tar.gz
gitlab-ci: Add lint-notes jobwip/note-check
Diffstat (limited to 'utils/notes-util/check.sh')
-rwxr-xr-xutils/notes-util/check.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/notes-util/check.sh b/utils/notes-util/check.sh
index 079eeec1cd..acac923471 100755
--- a/utils/notes-util/check.sh
+++ b/utils/notes-util/check.sh
@@ -3,10 +3,11 @@
set -e
CABAL_INSTALL="${CABAL_INSTALL:-cabal}"
+GHC="${GHC:-ghc}"
cd "$(dirname $0)"
-"$CABAL_INSTALL" build
-bin="$("$CABAL_INSTALL" list-bin ghc-notes)"
+"$CABAL_INSTALL" build -w "$GHC"
+bin="$("$CABAL_INSTALL" list-bin -w "$GHC" ghc-notes)"
cd "$(git rev-parse --show-toplevel)"
"$bin" broken-refs \
| grep -v "utils/notes-util/expected-broken-note-refs:" \