Created
December 30, 2011 15:50
-
-
Save joshuamorse/1540380 to your computer and use it in GitHub Desktop.
Install Script Idea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* A convinient way to get a Silex project up and running quickly. | |
* Currently incomplete. | |
* | |
* @author Joshua Morse <[email protected]> | |
*/ | |
$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