| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
cd $(dirname $0) |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
if [ "$1" = "--reinstall" ]; then |
|---|
| 7 |
rm -rf vendor |
|---|
| 8 |
fi |
|---|
| 9 |
|
|---|
| 10 |
mkdir -p vendor && cd vendor |
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
install_git() |
|---|
| 18 |
{ |
|---|
| 19 |
INSTALL_DIR=$1 |
|---|
| 20 |
SOURCE_URL=$2 |
|---|
| 21 |
REV=$3 |
|---|
| 22 |
|
|---|
| 23 |
if [ -z $REV ]; then |
|---|
| 24 |
REV=origin/HEAD |
|---|
| 25 |
fi |
|---|
| 26 |
|
|---|
| 27 |
if [ ! -d $INSTALL_DIR ]; then |
|---|
| 28 |
git clone $SOURCE_URL $INSTALL_DIR |
|---|
| 29 |
fi |
|---|
| 30 |
|
|---|
| 31 |
cd $INSTALL_DIR |
|---|
| 32 |
git fetch origin |
|---|
| 33 |
git reset --hard $REV |
|---|
| 34 |
cd .. |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
install_git assetic git://github.com/kriswallsmith/assetic.git |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
install_git doctrine git://github.com/doctrine/doctrine2.git |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
install_git doctrine-data-fixtures git://github.com/doctrine/data-fixtures.git |
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
install_git doctrine-dbal git://github.com/doctrine/dbal.git |
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
install_git doctrine-common git://github.com/doctrine/common.git |
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
install_git doctrine-migrations git://github.com/doctrine/migrations.git |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
install_git doctrine-mongodb git://github.com/doctrine/mongodb.git |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
install_git doctrine-mongodb-odm git://github.com/doctrine/mongodb-odm.git |
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
install_git swiftmailer git://github.com/swiftmailer/swiftmailer.git origin/4.1 |
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
install_git twig git://github.com/fabpot/Twig.git |
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
install_git zend git://github.com/zendframework/zf2.git |
|---|