Yatopia/scripts/upstreamCommit.sh
tr7zw 7575a4d27e Updated Upstream (Tuinity)
Upstream has released updates that appears to apply and compile correctly

Tuinity Changes:
bc37087 Updated Upstream (Paper)
f9c64d0 Updated Upstream (Paper)
2020-06-28 15:31:41 +02:00

33 lines
852 B
Bash

#!/usr/bin/env bash
(
set -e
PS1="$"
function changelog() {
base=$(git ls-tree HEAD $1 | cut -d' ' -f3 | cut -f1)
cd $1 && git log --oneline ${base}...ORIGIN/ver/1.16
}
tuinity=$(changelog Tuinity)
#paper=$(changelog Tuinity/Paper)
updated=""
logsuffix=""
if [ ! -z "$tuinity" ]; then
logsuffix="$logsuffix\n\nTuinity Changes:\n$tuinity"
if [ -z "$updated" ]; then updated="Tuinity"; else updated="$updated/Tuinity"; fi
fi
#if [ ! -z "$paper" ]; then
# logsuffix="$logsuffix\n\nPaper Changes:\n$paper"
# if [ -z "$updated" ]; then updated="Paper"; else updated="$updated/Paper"; fi
#fi
disclaimer="Upstream has released updates that appears to apply and compile correctly"
if [ ! -z "$1" ]; then
disclaimer="$@"
fi
log="${UP_LOG_PREFIX}Updated Upstream ($updated)\n\n${disclaimer}${logsuffix}"
echo -e "$log"
) || exit 1