2020-04-18 19:16:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
# pkg install --force --yes --no-repo-update curl gcc gmp gmake ncurses perl5 libffi libiconv
|
|
|
|
|
|
|
|
. "$( cd "$(dirname "$0")" ; pwd -P )/../../ghcup_env"
|
|
|
|
|
2020-05-01 14:27:27 +00:00
|
|
|
mkdir -p "${TMPDIR}"
|
|
|
|
|
2020-04-18 19:16:03 +00:00
|
|
|
curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-portbld-freebsd-ghcup > ./ghcup-bin
|
|
|
|
chmod +x ghcup-bin
|
|
|
|
|
2021-02-20 22:03:44 +00:00
|
|
|
./ghcup-bin upgrade -i -f
|
|
|
|
./ghcup-bin -s file://$(pwd)/ghcup-${JSON_VERSION}.yaml install ${GHC_VERSION}
|
|
|
|
./ghcup-bin -s file://$(pwd)/ghcup-${JSON_VERSION}.yaml set ${GHC_VERSION}
|
|
|
|
./ghcup-bin -s file://$(pwd)/ghcup-${JSON_VERSION}.yaml install-cabal ${CABAL_VERSION}
|
2020-04-18 19:16:03 +00:00
|
|
|
|
|
|
|
exit 0
|