vendors.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/sh
  2. cd $(dirname $0)
  3. # initialization
  4. if [ "$1" = "--reinstall" ]; then
  5. rm -rf vendor
  6. fi
  7. mkdir -p vendor && cd vendor
  8. ##
  9. # @param destination directory (e.g. "doctrine")
  10. # @param URL of the git remote (e.g. git://github.com/doctrine/doctrine2.git)
  11. #
  12. install_git()
  13. {
  14. INSTALL_DIR=$1
  15. SOURCE_URL=$2
  16. if [ -d $INSTALL_DIR ]; then
  17. cd $INSTALL_DIR
  18. git pull
  19. cd ..
  20. else
  21. git clone $SOURCE_URL $INSTALL_DIR
  22. fi
  23. }
  24. # Assetic
  25. install_git assetic git://github.com/kriswallsmith/assetic.git
  26. # Doctrine ORM
  27. install_git doctrine git://github.com/doctrine/doctrine2.git
  28. # Doctrine Data Fixtures Extension
  29. install_git doctrine-data-fixtures git://github.com/doctrine/data-fixtures.git
  30. # Doctrine DBAL
  31. install_git doctrine-dbal git://github.com/doctrine/dbal.git
  32. # Doctrine Common
  33. install_git doctrine-common git://github.com/doctrine/common.git
  34. # Doctrine migrations
  35. install_git doctrine-migrations git://github.com/doctrine/migrations.git
  36. # Doctrine MongoDB
  37. install_git doctrine-mongodb git://github.com/doctrine/mongodb.git
  38. # Doctrine MongoDB
  39. install_git doctrine-mongodb-odm git://github.com/doctrine/mongodb-odm.git
  40. # Swiftmailer
  41. install_git swiftmailer git://github.com/swiftmailer/swiftmailer.git
  42. # Twig
  43. install_git twig git://github.com/fabpot/Twig.git
  44. # Zend Framework
  45. install_git zend git://github.com/zendframework/zf2.git