#!/bin/bash set -eu; #pack name packName=swoole-ide-stubs.phar rm -rf src *tmp *.phar; mkdir -p tmp/; cd tmp/; curl -L https://github.com/wudi/swoole-ide-helper/archive/master.zip -o master.zip unzip -o *.zip 'swoole-ide-helper*/src/*' -d src mv src/*/src ../ cd .. php -d phar.readonly=0 pack.php