mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-23 08:27:24 +03:00
16 lines
301 B
Bash
Executable File
16 lines
301 B
Bash
Executable File
#!/bin/bash
|
|
# Updates cabal.project freeze files
|
|
set -e
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Usage: $0 <ghc-ver>"
|
|
echo ""
|
|
echo " For example, \"$0 8.10.4\""
|
|
exit 1
|
|
fi
|
|
|
|
cabal update
|
|
ghcup set ghc $1
|
|
cabal freeze --enable-tests --enable-benchmarks
|
|
mv cabal.project.freeze cabal.project.freeze.ghc-$1
|