菜谱项目

build-vendor-compat 553B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. set -e
  3. cd "${BASH_SOURCE%/*}/.."
  4. rm -rf build-vendor
  5. rm composer*.lock
  6. cp composer.json composer-compat.json
  7. if [[ $(php --version) = PHP\ 5.3* ]]; then
  8. HOA_VERSION=^1.14
  9. fi
  10. COMPOSER=composer-compat.json COMPOSER_VENDOR_DIR=build-vendor \
  11. composer require symfony/intl hoa/console $HOA_VERSION --no-progress --no-update --no-interaction --verbose
  12. COMPOSER=composer-compat.json COMPOSER_VENDOR_DIR=build-vendor \
  13. composer update --prefer-stable --no-dev --no-progress --classmap-authoritative --no-interaction --verbose