From 7a94dda5a4bc8d5a847e423d3d10bc951213e14f Mon Sep 17 00:00:00 2001 From: SWG Source Date: Sat, 31 Mar 2018 20:17:36 +0000 Subject: [PATCH] build_linux.sh edited online with Bitbucket --- build_linux.sh | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/build_linux.sh b/build_linux.sh index b5d8842..4944e9a 100755 --- a/build_linux.sh +++ b/build_linux.sh @@ -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!" \ No newline at end of file