Skip to content

Instantly share code, notes, and snippets.

@miklund
Created October 5, 2012 04:07
Show Gist options
  • Save miklund/3838023 to your computer and use it in GitHub Desktop.
Save miklund/3838023 to your computer and use it in GitHub Desktop.
FAKE ExecProcess build target example
let fslex = @"packages\FSPowerPack.Community.2.1.3.1\Tools\fslex.exe"
let parserDir = @".\LiteMedia.Dsl\"
// FsParse
Target "FsYacc" (fun _ ->
let result =
ExecProcess (fun info ->
info.FileName <- fsyacc
info.Arguments <- parserDir + "parser.fsy --module Parser"
) (System.TimeSpan.FromMinutes 1.)
if result <> 0 then failwith "Failed result from fsyacc"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment