linters: Fix check-version-number
[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 )