mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 15:17:17 +01:00
e4d10a6d67
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 122289ff Add FaceAttachable interface to handle Grindstone facing in common with Switches a6db750e SPIGOT-5647: ZombieVillager entity should have getVillagerType() CraftBukkit Changes:bbe3d58e
SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException3075579f
Add FaceAttachable interface to handle Grindstone facing in common with Switches95bd4238
SPIGOT-5647: ZombieVillager entity should have getVillagerType()4d975ac3
SPIGOT-5617: setBlockData does not work when NotPlayEvent is called by redstone current
40 lines
883 B
Bash
Executable file
40 lines
883 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
(
|
|
set -e
|
|
PS1="$"
|
|
basedir="$(cd "$1" && pwd -P)"
|
|
workdir="$basedir/work"
|
|
gitcmd="git -c commit.gpgsign=false"
|
|
|
|
updated="0"
|
|
function getRef {
|
|
git ls-tree $1 $2 | cut -d' ' -f3 | cut -f1
|
|
}
|
|
function update {
|
|
cd "$workdir/$1"
|
|
$gitcmd fetch && $gitcmd clean -fd && $gitcmd reset --hard origin/master
|
|
refRemote=$(git rev-parse HEAD)
|
|
cd ../
|
|
$gitcmd add $1 -f
|
|
refHEAD=$(getRef HEAD "$workdir/$1")
|
|
echo "$1 $refHEAD - $refRemote"
|
|
if [ "$refHEAD" != "$refRemote" ]; then
|
|
export updated="1"
|
|
fi
|
|
}
|
|
|
|
update Bukkit
|
|
update CraftBukkit
|
|
update Spigot
|
|
|
|
if [[ "$2" = "all" || "$2" = "a" ]] ; then
|
|
update BuildData
|
|
update Paperclip
|
|
fi
|
|
if [ "$updated" == "1" ]; then
|
|
echo "Rebuilding patches without filtering to improve apply ability"
|
|
cd "$basedir"
|
|
scripts/rebuildPatches.sh "$basedir" nofilter 1>/dev/null|| exit 1
|
|
fi
|
|
)
|