-
-
Save desarrolla2/1816237 to your computer and use it in GitHub Desktop.
Update Symfony2 script
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
#!/bin/bash | |
clear; | |
echo "> Update Symfony2 by getting the last vendors files and additional deps" | |
date | |
# Testing arguments | |
EXPECTED_ARGS=1 | |
E_BADARGS=65 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "Usage: `basename $0` 2.x.x" | |
exit $E_BADARGS | |
fi | |
echo "> Getting new deps files..." | |
curl -O https://raw.github.com/symfony/symfony-standard/v$1/deps > deps | |
curl -O https://raw.github.com/symfony/symfony-standard/v$1/deps.lock > deps.lock | |
echo "> Done!" | |
echo "> Addind personal deps..." | |
cat src/COil/Jobeet2Bundle/Install/deps.add >> deps | |
cat src/COil/Jobeet2Bundle/Install/deps.lock.add >> deps.lock | |
echo "> Done!" | |
echo "> Updating vendors..." | |
rm -rf vendor/* | |
php bin/vendors install --reinstall | |
echo "> Done!" | |
date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment