1
0
forked from GitHub/gf-core

exitFailure with gf -make

This commit is contained in:
aarne
2006-03-16 20:33:35 +00:00
parent f156073a13
commit e658e345fd
2 changed files with 9 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ putVerb st@(sh,_) s = if (oElem beSilent (globalOptions sh))
batchCompile :: Options -> FilePath -> IO ()
batchCompile os file = do
let file' = mkGFC file
let st = initHState emptyShellState
let st = initHState $ addGlobalOptions (options [iOpt "make"]) emptyShellState
let s = "i -o" +++ (unwords $ map ('-':) $ words $ prOpts os) +++ file
let cs = pCommandLines st s
execLines True cs st