diff --git a/prefix-code.sh b/prefix-code.sh index 1d087711e..fb3262ddd 100644 --- a/prefix-code.sh +++ b/prefix-code.sh @@ -23,19 +23,18 @@ note() # --------------------------- # 2. scope it -note "Downloading php-scoper 0.17.5" -# @todo upgrade to 0.18.1 -wget https://github.com/humbug/php-scoper/releases/download/0.17.5/php-scoper.phar -N --no-verbose +note "Downloading php-scoper 0.18.11" +wget https://github.com/humbug/php-scoper/releases/download/0.18.11/php-scoper.phar -N --no-verbose note "Running php-scoper" # Work around possible PHP memory limits -php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code +php -d memory_limit=-1 php-scoper.phar add-prefix bin src vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code # the output code is in "/scoped-code", lets move it up # the local directories have to be empty to move easily -rm -r bin config src vendor composer.json packages stubs +rm -r bin src vendor composer.json stubs mv scoped-code/* . note "Dumping Composer Autoload"