install.sh 491 B

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