1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-18 11:30:54 +01:00
phorge-arcanist/support/xhpast/bin/xhpast-generate-version.php
epriestley 6d15c6ea48 Remove duplication of XHPAST version in PHP and C code
Summary:
Depends on D21063. Ref T13492. Currently, XHPAST defines a version in both PHP code and C code, and they must be kept in sync.

Switch to a single definition in PHP, then carry it through the build pipeline into C.

Test Plan: Did a clean rebuild of XHPAST, saw a version number carried in from PHP. Ran "xhpast --version".

Maniphest Tasks: T13492

Differential Revision: https://secure.phabricator.com/D21064
2020-04-07 14:31:11 -07:00

8 lines
205 B
PHP
Executable file

#!/usr/bin/env php
<?php
$arcanist_root = dirname(dirname(dirname(dirname(__FILE__))));
require_once $arcanist_root.'/support/init/init-script.php';
echo PhutilXHPASTBinary::EXPECTED_VERSION;
echo "\n";