#!/bin/bash -e
rm -f dist/*.tar.gz
rm -rf dist/snapshot
cabal configure --ghc-options=-Werror
cabal sdist
cd dist
mkdir snapshot
tar -xf *.tar.gz -C snapshot
cd snapshot
mv hlint-* hlint # predictable name
cd hlint
cabal configure --ghc-options=-Werror
cabal build
hlint_datadir=. dist/build/hlint/hlint --test

#!/bin/bash -e
rm -f dist/*.tar.gz
rm -rf dist/snapshot
cabal configure --ghc-options=-Werror
cabal sdist
cd dist
mkdir snapshot
tar -xf *.tar.gz -C snapshot
cd snapshot
mv hlint-* hlint # predictable name
cd hlint
cabal configure --ghc-options=-Werror
cabal build
hlint_datadir=../../../data dist/build/hlint/hlint --test

Update the location of the datadir
Update the location of the datadir
