FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 25ead291 authored by thewilkybarkid's avatar thewilkybarkid
Browse files

Don't hard code profile names in the make script

parent 763b8ac4
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
"require": {
"drush/drush": "~6.0",
"symfony/filesystem": "~2.3",
"symfony/finder": "~2.3",
"symfony/process": "~2.3"
}
}
......@@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "4b5db3082f76ca70ac604aaa5cc5e7c3",
"hash": "8795f35c0cb5e64e3a03af37b5233cda",
"packages": [
{
"name": "drush/drush",
......@@ -118,6 +118,53 @@
"homepage": "http://symfony.com",
"time": "2013-07-21 12:12:18"
},
{
"name": "symfony/finder",
"version": "v2.3.4",
"target-dir": "Symfony/Component/Finder",
"source": {
"type": "git",
"url": "https://github.com/symfony/Finder.git",
"reference": "4a0fee5b86f5bbd9dfdc11ec124eba2915737ce1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/Finder/zipball/4a0fee5b86f5bbd9dfdc11ec124eba2915737ce1",
"reference": "4a0fee5b86f5bbd9dfdc11ec124eba2915737ce1",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.3-dev"
}
},
"autoload": {
"psr-0": {
"Symfony\\Component\\Finder\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"description": "Symfony Finder Component",
"homepage": "http://symfony.com",
"time": "2013-08-13 20:18:00"
},
{
"name": "symfony/process",
"version": "v2.3.4",
......
<?php
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Process\Process;
require_once __DIR__ . '/vendor/autoload.php';
......@@ -18,10 +19,15 @@ $fs->remove($build);
$arguments = array_slice($argv, 1);
$profiles = array(
'cambridge',
'cambridge_lite',
);
$finder = new Finder();
$makeFiles = $finder->files()->name('*.make')->depth(1)->in($src);
$profiles = array();
foreach ($makeFiles as $makeFile) {
$profiles[] = $makeFile->getPathInfo()->getFilename();
}
if (count($arguments) > 0) {
foreach ($arguments as $argument) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment