composer.sh 382 B

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