Yatopia/scripts/commitUpstream.sh
Ivan Pekov 347ab2bae2 Updated Upstream and Sidestream(s) (Tuinity/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:
e36359e Merge branch 'master' of https://github.com/Spottedleaf/Tuinity into ver/1.16.2
0b86de3 Fix several issues with Regions not recalculating correctly
36b43ee Automatically defrag IteratorSafeOrderedReferenceSet on element remove

Purpur Changes:
36672d6 remove unnecessary copying of BlockPosition
88ae09d fix the raid cooldown so that players can't just loop through the farm until the cooldown is over
de30a3e Updated Upstream (Paper & Tuinity)
2020-09-10 08:26:10 +03:00

54 lines
1.7 KiB
Bash
Executable File

#!/usr/bin/env bash
(
set -e
function changeLog() {
base=$(git ls-tree HEAD $1 | cut -d' ' -f3 | cut -f1)
cd $1 && git log --oneline ${base}...HEAD
}
tuinity=$(changeLog Tuinity)
akarin=$(changeLog Akarin)
empirecraft=$(changeLog Empirecraft)
origami=$(changeLog Origami)
purpur=$(changeLog Purpur)
rainforest=$(changeLog Rainforest)
updated=""
logsuffix=""
if [ ! -z "$tuinity" ]; then
logsuffix="$logsuffix\n\nTuinity Changes:\n$tuinity"
updated="Tuinity"
fi
if [ ! -z "$akarin" ]; then
logsuffix="$logsuffix\n\nAkarin Changes:\n$akarin"
if [ -z "$updated" ]; then updated="Akarin"; else updated="$updated/Akarin"; fi
fi
if [ ! -z "$empirecraft" ]; then
logsuffix="$logsuffix\n\nEMC Changes:\n$empirecraft"
if [ -z "$updated" ]; then updated="EMC"; else updated="$updated/EMC"; fi
fi
if [ ! -z "$origami" ]; then
logsuffix="$logsuffix\n\nOrigami Changes:\n$origami"
if [ -z "$updated" ]; then updated="Origami"; else updated="$updated/Origami"; fi
fi
if [ ! -z "$purpur" ]; then
logsuffix="$logsuffix\n\nPurpur Changes:\n$purpur"
if [ -z "$updated" ]; then updated="Purpur"; else updated="$updated/Purpur"; fi
fi
if [ ! -z "$rainforest" ]; then
logsuffix="$logsuffix\n\nRainforest Changes:\n$rainforest"
if [ -z "$updated" ]; then updated="Rainforest"; else updated="$updated/Rainforest"; fi
fi
disclaimer="Upstream/An Sidestream has released updates that appears to apply and compile correctly\nThis update has NOT been tested by YatopiaMC and as with ANY update, please do your own testing."
if [ ! -z "$1" ]; then
disclaimer="$@"
fi
log="Updated Upstream and Sidestream(s) ($updated)\n\n${disclaimer}${logsuffix}"
echo -e "$log" | git commit -F -
) || exit 1