aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/upstreamMerge.sh
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-07 17:41:32 +0100
committerNassim Jahnke <[email protected]>2024-12-12 10:58:58 +0100
commitc6233d8bcd28cfbd367ff9a518f5ca762ef32391 (patch)
treef1829a24606907764840faef70663a71d1bed39a /scripts/upstreamMerge.sh
parent40ec8fb60696c6d659aed0f3624903db353825d4 (diff)
downloadPaper-c6233d8bcd28cfbd367ff9a518f5ca762ef32391.tar.gz
Paper-c6233d8bcd28cfbd367ff9a518f5ca762ef32391.zip
Start updating contributing docs
Diffstat (limited to 'scripts/upstreamMerge.sh')
-rwxr-xr-xscripts/upstreamMerge.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/upstreamMerge.sh b/scripts/upstreamMerge.sh
deleted file mode 100755
index 319a71695d..0000000000
--- a/scripts/upstreamMerge.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/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 --force $1
- 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
-fi
-if [ "$updated" == "1" ]; then
- echo "Rebuilding patches without filtering to improve apply ability"
- cd "$basedir"
- ./gradlew cleanCache || exit 1 # todo: Figure out why this is necessary
- ./gradlew applyPatches -Dpaperweight.debug=true || exit 1
- ./gradlew rebuildPatches || exit 1
-fi
-)