From d683b2ddf5669282332ddf93f574cd3dd901d018 Mon Sep 17 00:00:00 2001 From: CekisSWG Date: Mon, 2 Apr 2018 01:19:52 +0000 Subject: [PATCH] build_linux.sh edited online with Bitbucket --- build_linux.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build_linux.sh b/build_linux.sh index 4944e9a..87d5661 100755 --- a/build_linux.sh +++ b/build_linux.sh @@ -25,8 +25,10 @@ fi read -p "What is your GIT username (so we can get the code correctly): " response GIT_USER=${response,,} GIT_URL=https://${GIT_USER}@bitbucket.org/theswgsource/ +GIT_REPO_DEPEND=${GIT_URL}dependencies-1.2.git GIT_REPO_SRC=${GIT_URL}src-1.2.git GIT_REPO_DSRC=${GIT_URL}dsrc-1.2.git +GIT_REPO_CONFIG=${GIT_URL}configs-1.2.git if [ ! -f $basedir/.setup ]; then if [[ $(lsb_release -a) =~ .*Ubuntu.* ]] || [ -f "/etc/debian_version" ] @@ -34,6 +36,13 @@ if [ ! -f $basedir/.setup ]; then read -p "!!!ONLY RUN ONCE!!! Do you want to install dependencies (y/n)?" response response=${response,,} # tolower if [[ $response =~ ^(yes|y| ) ]]; then + if [ ! -d $basedir/dependencies ]; then + git clone $GIT_REPO_DEPEND src + else + cd $basedir/dependencies + git pull + cd $basedir + fi $basedir/utils/init/debian.sh source /etc/profile.d/java.sh source /etc/profile.d/oracle.sh