e6d86eb9f7
The repo is now here: https://github.com/symfony/DoctrineMongoDBBundle It has been done as the bundle depends on Doctrine Common 2.1, but everything else in Symfony relies on Doctrine Common 2.0.
63 lines
1.3 KiB
Bash
Executable File
63 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
cd $(dirname $0)
|
|
|
|
# initialization
|
|
if [ "$1" = "--reinstall" ]; then
|
|
rm -rf vendor
|
|
fi
|
|
|
|
mkdir -p vendor && cd vendor
|
|
|
|
##
|
|
# @param destination directory (e.g. "doctrine")
|
|
# @param URL of the git remote (e.g. git://github.com/doctrine/doctrine2.git)
|
|
# @param revision to point the head (e.g. origin/HEAD)
|
|
#
|
|
install_git()
|
|
{
|
|
INSTALL_DIR=$1
|
|
SOURCE_URL=$2
|
|
REV=$3
|
|
|
|
if [ -z $REV ]; then
|
|
REV=origin/HEAD
|
|
fi
|
|
|
|
if [ ! -d $INSTALL_DIR ]; then
|
|
git clone $SOURCE_URL $INSTALL_DIR
|
|
fi
|
|
|
|
cd $INSTALL_DIR
|
|
git fetch origin
|
|
git reset --hard $REV
|
|
cd ..
|
|
}
|
|
|
|
# Assetic
|
|
install_git assetic git://github.com/kriswallsmith/assetic.git
|
|
|
|
# Doctrine ORM
|
|
install_git doctrine git://github.com/doctrine/doctrine2.git 2.0.4
|
|
|
|
# Doctrine Data Fixtures Extension
|
|
install_git doctrine-data-fixtures git://github.com/doctrine/data-fixtures.git
|
|
|
|
# Doctrine DBAL
|
|
install_git doctrine-dbal git://github.com/doctrine/dbal.git 2.0.4
|
|
|
|
# Doctrine Common
|
|
install_git doctrine-common git://github.com/doctrine/common.git 2.0.2
|
|
|
|
# Doctrine migrations
|
|
install_git doctrine-migrations git://github.com/doctrine/migrations.git
|
|
|
|
# Monolog
|
|
install_git monolog git://github.com/Seldaek/monolog.git
|
|
|
|
# Swiftmailer
|
|
install_git swiftmailer git://github.com/swiftmailer/swiftmailer.git origin/4.1
|
|
|
|
# Twig
|
|
install_git twig git://github.com/fabpot/Twig.git
|