2010-06-30 07:31:29 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-02-12 21:28:07 +00:00
|
|
|
cd $(dirname $0)
|
|
|
|
|
2010-06-30 07:31:29 +01:00
|
|
|
# initialization
|
2011-02-12 22:23:27 +00:00
|
|
|
if [ "$1" = "--reinstall" ]; then
|
|
|
|
rm -rf vendor
|
2010-06-30 13:13:35 +01:00
|
|
|
fi
|
|
|
|
|
2011-02-12 22:23:27 +00:00
|
|
|
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)
|
2011-02-15 13:25:13 +00:00
|
|
|
# @param revision to point the head (e.g. origin/HEAD)
|
2011-02-12 22:23:27 +00:00
|
|
|
#
|
|
|
|
install_git()
|
|
|
|
{
|
|
|
|
INSTALL_DIR=$1
|
|
|
|
SOURCE_URL=$2
|
2011-02-15 13:25:13 +00:00
|
|
|
REV=$3
|
|
|
|
|
|
|
|
if [ -z $REV ]; then
|
|
|
|
REV=origin/HEAD
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d $INSTALL_DIR ]; then
|
2011-02-12 22:23:27 +00:00
|
|
|
git clone $SOURCE_URL $INSTALL_DIR
|
|
|
|
fi
|
2011-02-15 13:25:13 +00:00
|
|
|
|
|
|
|
cd $INSTALL_DIR
|
|
|
|
git fetch origin
|
|
|
|
git reset --hard $REV
|
|
|
|
cd ..
|
2011-02-12 22:23:27 +00:00
|
|
|
}
|
2010-06-30 07:31:29 +01:00
|
|
|
|
2011-02-10 21:05:04 +00:00
|
|
|
# Assetic
|
2011-03-25 17:44:35 +00:00
|
|
|
install_git assetic git://github.com/kriswallsmith/assetic.git
|
2011-02-10 21:05:04 +00:00
|
|
|
|
2010-07-13 06:36:12 +01:00
|
|
|
# Doctrine ORM
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git doctrine git://github.com/doctrine/doctrine2.git
|
2010-07-13 06:36:12 +01:00
|
|
|
|
2010-10-05 08:30:24 +01:00
|
|
|
# Doctrine Data Fixtures Extension
|
2011-02-13 17:10:04 +00:00
|
|
|
install_git doctrine-data-fixtures git://github.com/doctrine/data-fixtures.git
|
2010-10-05 04:23:45 +01:00
|
|
|
|
2010-07-13 06:36:12 +01:00
|
|
|
# Doctrine DBAL
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git doctrine-dbal git://github.com/doctrine/dbal.git
|
2010-07-13 06:36:12 +01:00
|
|
|
|
|
|
|
# Doctrine Common
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git doctrine-common git://github.com/doctrine/common.git
|
2010-06-30 07:31:29 +01:00
|
|
|
|
|
|
|
# Doctrine migrations
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git doctrine-migrations git://github.com/doctrine/migrations.git
|
2010-06-30 07:31:29 +01:00
|
|
|
|
|
|
|
# Doctrine MongoDB
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git doctrine-mongodb git://github.com/doctrine/mongodb.git
|
2010-12-02 18:46:08 +00:00
|
|
|
|
|
|
|
# Doctrine MongoDB
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git doctrine-mongodb-odm git://github.com/doctrine/mongodb-odm.git
|
2010-06-30 07:31:29 +01:00
|
|
|
|
|
|
|
# Swiftmailer
|
2011-02-15 13:25:13 +00:00
|
|
|
install_git swiftmailer git://github.com/swiftmailer/swiftmailer.git origin/4.1
|
2010-06-30 07:31:29 +01:00
|
|
|
|
|
|
|
# Twig
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git twig git://github.com/fabpot/Twig.git
|
2010-06-30 07:31:29 +01:00
|
|
|
|
|
|
|
# Zend Framework
|
2011-02-12 22:23:27 +00:00
|
|
|
install_git zend git://github.com/zendframework/zf2.git
|