Added multithreading

This commit is contained in:
Joseph Robinson
2020-04-30 10:50:42 -07:00
parent 09aaa59f0a
commit 14a36a6861
3 changed files with 22 additions and 8 deletions

View File

@@ -7,6 +7,10 @@ PAPER_API_REPO=""
PAPER_SERVER_REPO=""
MCDEV_REPO=""
# Added Multithreading to builds
# By JosephWorks
BUILD_CORES="$(nproc --all)"
gitcmd="git -c commit.gpgsign=false -c core.quotepath=false -c core.safecrlf=false -c i18n.commit.encoding=UTF-8 -c i18n.logoutputencoding=UTF-8"
# DIR configure

View File

@@ -48,7 +48,7 @@ paperdir
./paper patch
#cd "Paper-Server"
#mcVer=$(mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=minecraft_version | sed -n -e '/^\[.*\]/ !{ /^[0-9]/ { p; q } }')
#mcVer=$(mvn -T ${BUILD_CORES} -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=minecraft_version | sed -n -e '/^\[.*\]/ !{ /^[0-9]/ { p; q } }')
#echo " $(bashcolor 1 32)(1/$subtasks)$(bashcolorend) - Import necessary sources.."
#basedir
@@ -84,4 +84,4 @@ echo " $(bashcolor 1 32)($subtasks/$subtasks) Succeed$(bashcolorend) - Submodul
echo " "
# gitpush Paper-API $PAPER_API_REPO $tag
# gitpush Paper-Server $PAPER_SERVER_REPO $tag
# gitpush Paper-Server $PAPER_SERVER_REPO $tag