composer.sh 479 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/php-composer.installed)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_depends php
  5. PHP_HOME=${PHP_HOME:-${IROOT}/php-5.5.17}
  6. mkdir -p php-composer
  7. cd php-composer
  8. fw_get https://getcomposer.org/installer -o composer-installer.php
  9. # Use the PHP and composer from our PHP_HOME directory and
  10. # COMPOSER_HOME directories
  11. ${PHP_HOME}/bin/php composer-installer.php --install-dir=${COMPOSER_HOME}
  12. cd ..
  13. touch ${IROOT}/php-composer.installed