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