Page MenuHomePhabricator

Move XHPAST build script to PHP
ClosedPublic

Authored by joshuaspence on Feb 2 2015, 9:22 PM.
Tags
None
Referenced Files
F17930438: D11629.diff
Wed, Jul 30, 6:02 PM
Unknown Object (File)
Jun 18 2025, 10:08 PM
Unknown Object (File)
Jun 16 2025, 10:50 PM
Unknown Object (File)
May 10 2025, 1:14 PM
Unknown Object (File)
May 6 2025, 9:57 AM
Unknown Object (File)
Apr 25 2025, 3:12 AM
Unknown Object (File)
Apr 23 2025, 6:40 AM
Unknown Object (File)
Apr 22 2025, 12:19 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.