mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 14:58:29 +01:00
22 lines
463 B
Bash
Executable File
22 lines
463 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Convenience script for checking constraints locally
|
|
|
|
set -euxo pipefail
|
|
|
|
cd `dirname $0`
|
|
|
|
MAJOR=$1
|
|
MINOR=$2
|
|
LTS="lts-$MAJOR.$MINOR"
|
|
|
|
echo "$MAJOR $MINOR $LTS"
|
|
|
|
export GHCVER=$(sed -n "s/^ghc-version: \"\(.*\)\"/\1/p" "lts-$MAJOR-build-constraints.yaml")
|
|
|
|
curator update &&
|
|
curator constraints --target=$LTS &&
|
|
curator snapshot-incomplete --target=$LTS &&
|
|
curator snapshot &&
|
|
stack --resolver ghc-$GHCVER exec curator check-snapshot
|