forked from symfony/symfony-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
24 lines (21 loc) · 691 Bytes
/
install.sh
File metadata and controls
24 lines (21 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
function sparse_checkout {
mkdir sparse_checkout
cd sparse_checkout
git init
git config core.sparsecheckout true
git remote add -f origin http://github.com/$1/$2
echo Resources/doc > .git/info/sparse-checkout
git checkout master
rm -rf ../bundles/$2
mv Resources/doc ../bundles/$2
cd ..
rm -rf sparse_checkout
}
sparse_checkout sensiolabs SensioFrameworkExtraBundle
sparse_checkout sensiolabs SensioGeneratorBundle
sparse_checkout doctrine DoctrineFixturesBundle
sparse_checkout doctrine DoctrineMigrationsBundle
sparse_checkout doctrine DoctrineMongoDBBundle
rm -rf cmf
git clone http://github.com/symfony-cmf/symfony-cmf-docs cmf