Skip to content

Instantly share code, notes, and snippets.

@joshuamorse
Created December 30, 2011 15:50
Show Gist options
  • Save joshuamorse/1540380 to your computer and use it in GitHub Desktop.
Save joshuamorse/1540380 to your computer and use it in GitHub Desktop.
Install Script Idea
#!/usr/bin/env php
<?php
/**
* A convinient way to get a Silex project up and running quickly.
* Currently incomplete.
*
* @author Joshua Morse <dashvibe@gmail.com>
*/
$files = array(
__DIR__.'/../app/config.php.dist',
__DIR__.'/../phpunit.xml.dist',
__DIR__.'/../web/.htaccess.dist',
);
echo "> Setting up .dist files\n";
foreach ($files as $file) {
system(sprintf('cp %s %s', $file, str_replace('.dist', '', $file)));
}
system('./bin/vendors install');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment