Compile example grammars during the build phase instead of the install phase

This allows more errors to be detected by the build bot.
TODO: fix the gf --output-dir flag, which does not seem to change where PGF
file are put.
This commit is contained in:
hallgren
2014-06-18 23:57:45 +00:00
parent 3d5d600236
commit a21a782e47
2 changed files with 41 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ tryIOE = E.try
main :: IO ()
main = defaultMainWithHooks simpleUserHooks{ preBuild =gfPreBuild
, postBuild=buildRGL
, postBuild=gfPostBuild
, preInst =gfPreInst
, postInst =gfPostInst
, preCopy =const . checkRGLArgs
@@ -41,6 +41,11 @@ main = defaultMainWithHooks simpleUserHooks{ preBuild =gfPreBuild
extractDarcsVersion distFlag
return h
gfPostBuild args flags pkg lbi =
do buildRGL args flags pkg lbi
let gf = default_gf pkg lbi
buildWeb gf args flags pkg lbi
gfPostInst args flags pkg lbi =
do installRGL args flags pkg lbi
let gf = default_gf pkg lbi