Skip to content
Newer
Older
100755 40 lines (31 sloc) 601 Bytes
16b7b80 @Vrtak-CZ cleaning
Vrtak-CZ authored
1 #!/bin/sh
2
3 ##########
4 # Config #
5 ##########
6
7 BUILD_TOOLS_REPO="git://github.com/nella/framework-build-tools.git"
b0433cc @Vrtak-CZ update build scripts
Vrtak-CZ authored
8 BUILD_TOOLS_DIR="build-tools"
16b7b80 @Vrtak-CZ cleaning
Vrtak-CZ authored
9
10 ########################
11 # Download build tools #
12 ########################
13
b0433cc @Vrtak-CZ update build scripts
Vrtak-CZ authored
14 if [ -d "$BUILD_TOOLS_DIR" ]
59b0542 @Vrtak-CZ update before build
Vrtak-CZ authored
15 then
b0433cc @Vrtak-CZ update build scripts
Vrtak-CZ authored
16 rm -rf $BUILD_TOOLS_DIR
59b0542 @Vrtak-CZ update before build
Vrtak-CZ authored
17 fi
16b7b80 @Vrtak-CZ cleaning
Vrtak-CZ authored
18
b0433cc @Vrtak-CZ update build scripts
Vrtak-CZ authored
19 git clone $BUILD_TOOLS_REPO $BUILD_TOOLS_DIR
16b7b80 @Vrtak-CZ cleaning
Vrtak-CZ authored
20
21 ################
22 # Init vendors #
23 ################
24
841fc6e @Vrtak-CZ build: update before build script
Vrtak-CZ authored
25 if [ -f "composer.lock" ]
26 then
27 rm composer.lock
28 fi
29 if [ -f "composer.phar" ]
30 then
31 rm composer.phar
32 fi
59b0542 @Vrtak-CZ update before build
Vrtak-CZ authored
33 if [ -d "vendor" ]
841fc6e @Vrtak-CZ build: update before build script
Vrtak-CZ authored
34 then
59b0542 @Vrtak-CZ update before build
Vrtak-CZ authored
35 rm -rf vendor
841fc6e @Vrtak-CZ build: update before build script
Vrtak-CZ authored
36 fi
2fded2d @Vrtak-CZ add composer
Vrtak-CZ authored
37 curl -s http://getcomposer.org/installer | php
b0433cc @Vrtak-CZ update build scripts
Vrtak-CZ authored
38 php composer.phar install
16b7b80 @Vrtak-CZ cleaning
Vrtak-CZ authored
39
Something went wrong with that request. Please try again.