gitlab-ci: Ensure that version number has three components
[ghc.git] / .gitlab / linters / check-version-number.sh
1 #!/usr/bin/env bash
2
3 set -e
4
5 grep -e -q '\[[0-9]+\.[0-9]+\.[0-9]+\]' configure.ac ||
6 ( echo "error: configure.ac: GHC version number must have three components."; exit 1 )