-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LeePike
committed
Feb 6, 2012
1 parent
d126eef
commit fd7dc3a
Showing
3 changed files
with
9 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cabal-dev | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
module Main ( main ) where | ||
|
||
import System.Directory (findExecutable) | ||
import Distribution.Simple (defaultMainWithHooks, simpleUserHooks, postInst) | ||
import System.Directory (findExecutable) | ||
import System.Exit (exitWith, ExitCode(..)) | ||
|
||
main :: IO () | ||
main = defaultMainWithHooks simpleUserHooks{ postInst = checkDefSolver } | ||
where checkDefSolver _ _ _ _ = do | ||
mbP <- findExecutable "cbmc" | ||
case mbP of | ||
Nothing -> do putStrLn "***" | ||
putStrLn "*** The copilot-cbmc library requires the solver cbcm to be installed." | ||
putStrLn "*** The executable CBMC must be in your path." | ||
putStrLn "*** Please install CBMC and put it in your path!" | ||
putStrLn "*** CBMC can downloaded at http://www.cprover.org/cbmc/" | ||
putStrLn "***" | ||
Just _ -> return () | ||
exitWith ExitSuccess | ||
|
||
main = defaultMain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters