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)
Thu, Apr 25, 3:58 AM
Unknown Object (File)
Sat, Apr 20, 2:18 AM
Unknown Object (File)
Tue, Apr 16, 5:02 AM
Unknown Object (File)
Sat, Apr 13, 6:31 AM
Unknown Object (File)
Mar 27 2024, 5:47 PM
Unknown Object (File)
Mar 27 2024, 3:18 PM
Unknown Object (File)
Mar 22 2024, 3:59 PM
Unknown Object (File)
Mar 22 2024, 3:59 PM
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.