Skip to content

Commit bf4a716

Browse files
committed
initial commit
0 parents  commit bf4a716

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

install.sh

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#!/bin/sh
2+
DIR=`php -r "echo dirname(realpath('$0'));"`
3+
DIR="$DIR/symfony-standard"
4+
VENDOR="$DIR/vendor"
5+
BUNDLES="$VENDOR/bundles"
6+
7+
git clone https://github.com/symfony/symfony-standard.git
8+
9+
cd $DIR
10+
rm -Rf ".git"
11+
rm ".gitignore"
12+
13+
git init
14+
git add .
15+
git commit -m "initial import"
16+
17+
mkdir -p vendor
18+
19+
install_git()
20+
{
21+
INSTALL_DIR=$1
22+
SOURCE_URL=$2
23+
REV=$3
24+
25+
echo "> Installing/Updating submodule" $INSTALL_DIR
26+
27+
if [ -z $REV ]; then
28+
REV=origin/HEAD
29+
fi
30+
31+
if [ ! -d $INSTALL_DIR ]; then
32+
git submodule add $SOURCE_URL $INSTALL_DIR
33+
fi
34+
35+
cd $INSTALL_DIR
36+
git fetch origin
37+
git reset --hard $REV
38+
cd $DIR
39+
}
40+
41+
# Assetic
42+
install_git vendor/assetic http://github.com/kriswallsmith/assetic.git
43+
44+
# Symfony
45+
install_git vendor/symfony http://github.com/symfony/symfony.git
46+
47+
# Doctrine ORM
48+
install_git vendor/doctrine http://github.com/doctrine/doctrine2.git 2.0.4
49+
50+
# Doctrine DBAL
51+
install_git vendor/doctrine-dbal http://github.com/doctrine/dbal.git 2.0.4
52+
53+
# Doctrine Common
54+
install_git vendor/doctrine-common http://github.com/doctrine/common.git 2.0.2
55+
56+
# Swiftmailer
57+
install_git vendor/swiftmailer http://github.com/swiftmailer/swiftmailer.git origin/4.1
58+
59+
# Twig
60+
install_git vendor/twig http://github.com/fabpot/Twig.git
61+
62+
# Twig Extensions
63+
install_git vendor/twig-extensions http://github.com/fabpot/Twig-extensions.git
64+
65+
# Monolog
66+
install_git vendor/monolog http://github.com/Seldaek/monolog.git
67+
68+
# SensioFrameworkExtraBundle
69+
mkdir -p vendor/bundles/Sensio/Bundle
70+
install_git vendor/bundles/Sensio/Bundle/FrameworkExtraBundle http://github.com/sensio/SensioFrameworkExtraBundle.git
71+
72+
# SecurityExtraBundle
73+
mkdir -p vendor/bundles/JMS
74+
install_git vendor/bundles/JMS/SecurityExtraBundle http://github.com/schmittjoh/SecurityExtraBundle.git
75+
76+
# Symfony bundles
77+
mkdir -p vendor/bundles/Symfony/Bundle
78+
79+
# WebConfiguratorBundle
80+
install_git vendor/bundles/Symfony/Bundle/WebConfiguratorBundle http://github.com/symfony/WebConfiguratorBundle.git
81+
82+
# Update the bootstrap files
83+
$DIR/bin/build_bootstrap.php
84+
85+
# Update assets
86+
$DIR/app/console assets:install $DIR/web/
87+
88+
#make log and cache writable
89+
chmod -R 0777 app/logs
90+
chmod -R 0777 app/cache
91+
92+
git add .
93+
git commit -m "install submodules and web-assets"
94+
95+
echo "done. Now open web/config.php to start the config. http://localhost/config.php"

0 commit comments

Comments
 (0)