Yatopia/scripts/fetchUpstream.sh
Ivan Pekov 8a67951956
Updated Upstream and Sidestream(s) (Tuinity/EMC/Purpur)
Upstream/An Sidestream has released updates that appears to apply and compile correctly
This update has NOT been tested by YatopiaMC and as with ANY update, please do your own testing.

Tuinity Changes:
1d73f6c Updated Upstream (Paper)

EMC Changes:
81f5e1fa Updated Paper
faf92d5c Updated Paper
7e1e4bad Update patch name to reflect what actually is being changed
019ceb9f Update patch name for fishing hook api
647b2063 Separate out a patch for using getType in the ItemStack isSimilar method
38734f9b Updated Paper
ac260ccd Update to 1.16.3
4977edff Updated Paper

Purpur Changes:
debedee Add predicate to recipe's ExactChoice ingredient
2459033 Rebuild patches
17d8ee8 Add option to disable zombies pathfinding to villagers only when lagging
1e25c2f Fix typo/error in a purpur world setting
da9953a Updated Upstream (Paper)
2020-10-03 10:16:41 +03:00

46 lines
855 B
Bash
Executable File

#!/usr/bin/env bash
PS1=$
basedir=`pwd`
function update {
branch=$2
if [ -z "$2" ]; then
branch="master"
fi
cd "$basedir/$1"
git fetch && git reset --hard origin/$branch
git add $1
}
function updateAll {
update Akarin 1.16.2
update Empirecraft master
update Origami 1.16
update Purpur ver/1.16.3
update Rainforest ver/1.16
update Tuinity ver/1.16.3
git submodule update --recursive
}
if [ -z "$1" ]; then
updateAll
elif [ "$1" == "true" ]; then
update Tuinity ver/1.16.3
git submodule update --recursive
elif [ "$1" == "false" ]; then
if [ "$2" == "true" ]; then
git submodule update --init -f
cd "$basedir"
cd Tuinity
git clean -fx
git clean -fd
git fetch
git reset --hard origin/ver/1.16.3
git submodule update --init --recursive -f
else
updateAll
fi
else
updateAll
fi