Yatopia/scripts/fetchUpstream.sh
Ivan Pekov 784079fc31
optimizations (#297)
* Drop useless stuff

* Faster Random

* TE opts

* Patches.md

* More Faster Random

* Fix Build

* More Opts

* AirplaneLite

* Update README.md

removed TIC-TACS and adding AirplaneLite

* Add AirplaneLite to the update script

* Rebuild patches

* Make enchanting table ticking configurable

* AirplaneLite to commitUpstream.sh

* Use FastRandom on more places

Co-authored-by: Bud Gidiere <sgidiere@gmail.com>
Co-authored-by: Simon Gardling <Titaniumtown@gmail.com>
2020-11-30 20:08:41 -06: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 AirplaneLite master
update Akarin 1.16.3
update Empirecraft master
update Origami 1.16
update Purpur ver/1.16.4
update Tuinity ver/1.16.4
git submodule update --recursive
}
if [ -z "$1" ]; then
updateAll
elif [ "$1" == "true" ]; then
update Tuinity ver/1.16.4
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.4
git submodule update --init --recursive -f
else
updateAll
fi
else
updateAll
fi