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 master */ if (!$vcpkg->checkoutRepository()) { 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);