diff --git a/Makefile b/Makefile index 315f5743..659568f6 100644 --- a/Makefile +++ b/Makefile @@ -40,4 +40,11 @@ tag: git commit -m '$(TAG) release' chag tag -.PHONY: docs +burgomaster: + mkdir -p build/artifacts + curl -s https://raw.githubusercontent.com/mtdowling/Burgomaster/0.0.2/src/Burgomaster.php > build/artifacts/Burgomaster.php + +package: burgomaster + php build/packager.php + +.PHONY: docs burgomaster diff --git a/build/packager.php b/build/packager.php index b5585e9b..9a3ee1c0 100644 --- a/build/packager.php +++ b/build/packager.php @@ -13,11 +13,12 @@ foreach (['README.md', 'LICENSE'] as $file) { // Copy each dependency to the staging directory. Copy *.php and *.pem files. $packager->recursiveCopy('src', 'GuzzleHttp', ['php']); -$packager->recursiveCopy('vendor/guzzlehttp/promise/src', 'GuzzleHttp/Promise'); +$packager->recursiveCopy('vendor/guzzlehttp/promises/src', 'GuzzleHttp/Promise'); $packager->recursiveCopy('vendor/guzzlehttp/psr7/src', 'GuzzleHttp/Psr7'); -$packager->recursiveCopy('vendor/psr/http-message/src', 'Psr\Http\Message'); +$packager->recursiveCopy('vendor/psr/http-message/src', 'Psr/Http/Message'); $packager->createAutoloader([ + 'GuzzleHttp/functions.php', 'GuzzleHttp/Psr7/functions.php', 'GuzzleHttp/Promise/functions.php', ]);