vendors.sh 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. # @param revision to point the head (e.g. origin/HEAD)
  12. #
  13. install_git()
  14. {
  15. INSTALL_DIR=$1
  16. SOURCE_URL=$2
  17. REV=$3
  18. if [ -z $REV ]; then
  19. REV=origin/HEAD
  20. fi
  21. if [ ! -d $INSTALL_DIR ]; then
  22. git clone $SOURCE_URL $INSTALL_DIR
  23. fi
  24. cd $INSTALL_DIR
  25. git fetch origin
  26. git reset --hard $REV
  27. cd ..
  28. }
  29. # Assetic
  30. install_git assetic git://github.com/kriswallsmith/assetic.git
  31. # Doctrine ORM
  32. install_git doctrine git://github.com/doctrine/doctrine2.git
  33. # Doctrine Data Fixtures Extension
  34. install_git doctrine-data-fixtures git://github.com/doctrine/data-fixtures.git
  35. # Doctrine DBAL
  36. install_git doctrine-dbal git://github.com/doctrine/dbal.git
  37. # Doctrine Common
  38. install_git doctrine-common git://github.com/doctrine/common.git
  39. # Doctrine migrations
  40. install_git doctrine-migrations git://github.com/doctrine/migrations.git
  41. # Doctrine MongoDB
  42. install_git doctrine-mongodb git://github.com/doctrine/mongodb.git
  43. # Doctrine MongoDB
  44. install_git doctrine-mongodb-odm git://github.com/doctrine/mongodb-odm.git
  45. # Swiftmailer
  46. install_git swiftmailer git://github.com/swiftmailer/swiftmailer.git origin/4.1
  47. # Twig
  48. install_git twig git://github.com/fabpot/Twig.git
  49. # Zend Framework
  50. install_git zend git://github.com/zendframework/zf2.git