#!/usr/bin/php setStub($stub); } catch(Exception $e) { $phar = false; } exit_unless($phar, "Unable to create a phar. Make certain you have phar.readonly=0 set in your ini file."); $phar->buildFromDirectory(dirname($source_dir)); echo "[ OK ]\n"; // Add it to git! echo "Adding httpful.phar to the repo... "; $return_code = 0; passthru("git add $phar_path", $return_code); exit_unless($return_code === 0, "Unable to add download files to git."); echo "[ OK ]\n"; echo "\nBuild completed successfully.\n\n";