|
@@ -1,9 +1,16 @@
|
|
|
#!/bin/bash
|
|
|
|
|
|
-RETCODE=$(fw_exists bin/composer.phar)
|
|
|
+RETCODE=$(fw_exists php-composer.installed)
|
|
|
[ ! "$RETCODE" == 0 ] || { return 0; }
|
|
|
|
|
|
fw_depends php
|
|
|
fw_get https://getcomposer.org/installer -O composer-installer.php
|
|
|
-mkdir -p bin
|
|
|
-php composer-installer.php --install-dir=bin
|
|
|
+
|
|
|
+mkdir -p php-composer
|
|
|
+
|
|
|
+# Use the PHP from our IROOT directory
|
|
|
+PHP_HOME=${IROOT}/php-5.4.13
|
|
|
+${PHP_HOME}/bin/php composer-installer.php --install-dir=$IROOT/php-composer
|
|
|
+
|
|
|
+touch php-composer.installed
|
|
|
+
|