mirror of
https://github.com/SWG-Source/swg-main.git
synced 2026-01-16 20:04:18 -05:00
Merge pull request #8 from dev-anon/master
updated build_linux.sh - stationapi can now be cloned or pulled during script activation
This commit is contained in:
@@ -38,6 +38,7 @@ GIT_REPO_SRC=${GIT_URL}src.git
|
|||||||
GIT_REPO_DSRC=${GIT_URL}dsrc.git
|
GIT_REPO_DSRC=${GIT_URL}dsrc.git
|
||||||
GIT_REPO_CONFIG=${GIT_URL}configs.git
|
GIT_REPO_CONFIG=${GIT_URL}configs.git
|
||||||
GIT_REPO_CLIENTDATA=${GIT_URL}clientdata.git
|
GIT_REPO_CLIENTDATA=${GIT_URL}clientdata.git
|
||||||
|
GIT_REPO_STATIONAPI=${GIT_URL}stationapi.git
|
||||||
|
|
||||||
# specify git branches for each repo
|
# specify git branches for each repo
|
||||||
GIT_REPO_DEPEND_BRANCH=master
|
GIT_REPO_DEPEND_BRANCH=master
|
||||||
@@ -45,6 +46,7 @@ GIT_REPO_SRC_BRANCH=master
|
|||||||
GIT_REPO_DSRC_BRANCH=master
|
GIT_REPO_DSRC_BRANCH=master
|
||||||
GIT_REPO_CONFIG_BRANCH=master
|
GIT_REPO_CONFIG_BRANCH=master
|
||||||
GIT_REPO_CLIENTDATA_BRANCH=master
|
GIT_REPO_CLIENTDATA_BRANCH=master
|
||||||
|
GIT_REPO_STATIONAPI_BRANCH=master
|
||||||
|
|
||||||
echo -e "\033[1;31m";
|
echo -e "\033[1;31m";
|
||||||
if [ ! -f $basedir/.setup ]; then
|
if [ ! -f $basedir/.setup ]; then
|
||||||
@@ -126,6 +128,14 @@ if [[ $response =~ ^(yes|y| ) ]]; then
|
|||||||
git pull
|
git pull
|
||||||
cd $basedir
|
cd $basedir
|
||||||
fi
|
fi
|
||||||
|
if [ ! -d $basedir/stationapi/.git ]; then
|
||||||
|
rm -rf $basedir/stationapi
|
||||||
|
git clone -b $GIT_REPO_STATIONAPI_BRANCH $GIT_REPO_STATIONAPI stationapi
|
||||||
|
else
|
||||||
|
cd $basedir/stationapi
|
||||||
|
git pull
|
||||||
|
cd $basedir
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -p "Is this for DEBUG mode or RELEASE mode? (d/r): " response
|
read -p "Is this for DEBUG mode or RELEASE mode? (d/r): " response
|
||||||
|
|||||||
Reference in New Issue
Block a user