mirror of
https://bitbucket.org/theswgsource/swg-main-1.2.git
synced 2026-01-16 23:04:40 -05:00
build_linux.sh edited online with Bitbucket
This commit is contained in:
@@ -10,27 +10,24 @@ CLUSTERNAME=
|
||||
NODEID=
|
||||
DSRC_DIR=
|
||||
DATA_DIR=
|
||||
GIT_URL="https://darth-swg@bitbucket.org/stellabellumswg/dsrc.git"
|
||||
GIT_REPO_SRC=${GIT_URL}src.git
|
||||
GIT_REPO_DSRC=${GIT_URL}dsrc.git
|
||||
GIT_REPO_CONFIG=${GIT_URL}configs.git
|
||||
GIT_REPO_DATA=${GIT_URL}data.git
|
||||
|
||||
# Debug and Release are for testing and not public servers, they lack optimizations
|
||||
MODE=Release
|
||||
#MODE=Debug
|
||||
|
||||
# Public/high load release builds - heavily optimized bins
|
||||
#MODE=MINSIZEREL
|
||||
|
||||
# Builds binaries to generate profdata
|
||||
# Public facing - builds profdata
|
||||
#MODE=RELWITHDEBINFO
|
||||
|
||||
# Public facing, builds heavily optimized bins
|
||||
#MODE=MINSIZEREL
|
||||
|
||||
if [ ! -d $basedir/build ]
|
||||
then
|
||||
mkdir $basedir/build
|
||||
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_SRC=${GIT_URL}src-1.2.git
|
||||
GIT_REPO_DSRC=${GIT_URL}dsrc-1.2.git
|
||||
|
||||
if [ ! -f $basedir/.setup ]; then
|
||||
if [[ $(lsb_release -a) =~ .*Ubuntu.* ]] || [ -f "/etc/debian_version" ]
|
||||
then
|
||||
@@ -79,6 +76,14 @@ if [[ $response =~ ^(yes|y| ) ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
read -p "Is this for DEBUG mode or RELEASE mode? (d/r): " response
|
||||
response=${response,,}
|
||||
if [[ $response =~ ^(debug|d| ) ]]; then
|
||||
MODE=Debug
|
||||
else
|
||||
MODE=Release
|
||||
fi
|
||||
|
||||
read -p "Do you want to recompile the server code (C++) now? (y/n) " response
|
||||
response=${response,,} # tolower
|
||||
if [[ $response =~ ^(yes|y| ) ]]; then
|
||||
@@ -318,7 +323,7 @@ if [[ $response =~ ^(yes|y| ) ]]; then
|
||||
read DBPASSWORD
|
||||
fi
|
||||
|
||||
./database_update.pl --username=$DBUSERNAME --password=$DBPASSWORD --service=$DBSERVICE --goldusername=$DBUSERNAME --loginusername=$DBUSERNAME --createnewcluster --packages
|
||||
perl ./database_update.pl --username=$DBUSERNAME --password=$DBPASSWORD --service=$DBSERVICE --goldusername=$DBUSERNAME --loginusername=$DBUSERNAME --createnewcluster --packages
|
||||
|
||||
if [[ $templatesLoaded = false ]]; then
|
||||
echo "Loading template list"
|
||||
@@ -327,4 +332,4 @@ if [[ $response =~ ^(yes|y| ) ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Build complete!"
|
||||
echo "Build complete!"
|
||||
Reference in New Issue
Block a user