checkoutRepository($vcpkg->getTag())) { exit(1); } /* First run with SHA512 of 0 to gather actual value and save it */ $sha512 = $vcpkg->firstBuild( $vcpkg->constructPortAndVersionFile() ); if (!empty($sha512)) { /* Now check out the latest tag or specified tag */ if (!$vcpkg->checkoutRepository(count($argv) > 2 && !empty($argv[3]) ? $argv[3] : "")) { exit(1); } /* Attempt second build with the valid SHA512 sum. Program exit * status is the exit status of `vcpkg install` */ exit( $vcpkg->secondBuild( $vcpkg->constructPortAndVersionFile($sha512) ) ); } /* Error if no SHA sum could be generated */ exit(1);