ndmitchell / build-shootout

Comparison of build program expressive power
88 stars 11 forks source link

Adding build systems where the build file has a constant name #20

Closed refi64 closed 6 years ago

refi64 commented 9 years ago

Some build systems (most particularly Waf and fbuild) don't let you use a custom build script. In Waf's case, it must ALWAYS be named wscript; in fbuild's, fbuildroot.py. Could a way of getting around this be added to Util.hs?

ndmitchell commented 9 years ago

Sure. That bit runs in a temp directory, so if around line 130 you add the code:

Waf -> do
    renameFile (name ++ "-wscript") "script"
    system_ "waf"

That should work just fine. If you have any difficulties just send me a patch you think should work for one of the tests, and I'll integrate it from there.

refi64 commented 6 years ago

Woah, I just realized this was still open...whoops...