Added multithreading
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user