mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-12-02 07:33:39 +01:00
784079fc31
* 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>
54 lines
1.7 KiB
Bash
Executable File
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)
|
|
airplaneL=$(changeLog AirplaneLite)
|
|
|
|
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 "$airplaneL" ]; then
|
|
logsuffix="$logsuffix\n\nAirplaneLite Changes:\n$airplaneL"
|
|
if [ -z "$updated" ]; then updated="AirplaneLite"; else updated="$updated/AirplaneLite"; 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
|