Page MenuHomePhabricator

Move XHPAST build script to PHP
ClosedPublic

Authored by joshuaspence on Feb 2 2015, 9:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 8:00 AM
Unknown Object (File)
Sat, Dec 14, 10:12 PM
Unknown Object (File)
Fri, Dec 6, 10:54 AM
Unknown Object (File)
Fri, Dec 6, 3:00 AM
Unknown Object (File)
Thu, Nov 28, 3:46 AM
Unknown Object (File)
Thu, Nov 28, 1:26 AM
Unknown Object (File)
Tue, Nov 26, 8:38 AM
Unknown Object (File)
Tue, Nov 26, 8:38 AM
Subscribers

Details

Summary

Currently, building XHPAST from within PHP involves running PhutilXHPASTBinary::build(), which executes the ./scripts/build_xhpast.sh script, which then calls make. Instead, we can bypass ./scripts/build_xhpast.sh and call make directly from PhutilXHPASTBinary::build(). This feels a lot cleaner.

I have retained the ./scripts/build_xhpast.sh script, although it is really a PHP file now. I was considering renaming it to build_xhpast.php, but decided to leave it as is for backwards compatibility.

Test Plan
> ./scripts/build_xhpast.sh 
Build successful!

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Move XHPAST build script to PHP.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.

Rename build_xhpast.php to build_xhpast.sh

joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence updated this object.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Feb 3 2015, 1:11 PM
This revision was automatically updated to reflect the committed changes.