Commit 9bbf6aaf authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Note what form of string we get from invoking hmake --version

parent 876144d4
......@@ -506,6 +506,8 @@ nhcProgram = (simpleProgram "nhc98") {
hmakeProgram :: Program
hmakeProgram = (simpleProgram "hmake") {
programFindVersion = findProgramVersion "--version" $ \str ->
-- Invoking "hmake --version" gives a string line
-- "/usr/local/bin/hmake: 3.13 (2006-11-01)"
case words str of
(_:ver:_) -> ver
_ -> ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment