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, Nov 21, 8:30 PM
Unknown Object (File)
Wed, Nov 20, 8:23 AM
Unknown Object (File)
Sat, Nov 16, 8:45 AM
Unknown Object (File)
Mon, Nov 11, 4:54 PM
Unknown Object (File)
Fri, Nov 8, 7:48 AM
Unknown Object (File)
Tue, Oct 29, 9:35 PM
Unknown Object (File)
Oct 24 2024, 5:38 PM
Unknown Object (File)
Oct 11 2024, 11:33 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4254
Build 4267: [Placeholder Plan] Wait for 30 Seconds

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.