Upstream has released updates that appear to apply and compile correctly. [Purpur Changes] PurpurMC/Purpur@e86a1b6: Updated Upstream (Paper) PurpurMC/Purpur@962ee30: Updated Upstream (Paper) PurpurMC/Purpur@74d1b4c: Updated Upstream (Paper) PurpurMC/Purpur@e2e8c61: Updated Upstream (Paper) PurpurMC/Purpur@7a01fd8: Updated Upstream (Paper) PurpurMC/Purpur@34c18f0: Updated Upstream (Paper) PurpurMC/Purpur@ca668ab: Updated Upstream (Paper) PurpurMC/Purpur@200178d: Updated Upstream (Paper) PurpurMC/Purpur@9968cbb: Updated Upstream (Paper) PurpurMC/Purpur@db09358: Fix clamp-levels option not being true by default (#1609) PurpurMC/Purpur@f289b6a: Updated Upstream (Paper) PurpurMC/Purpur@959c29d: Fix Tridents giving errors without having an Elytra equipped (#1612) PurpurMC/Purpur@68c1612: Fix villagers not spawning when the `follow-emerald-blocks` option is enabled (#1611) PurpurMC/Purpur@5b75c68: fix `bypass-mob-griefing` not being the inverse of mobgriefing gamerule, closes #1603 PurpurMC/Purpur@55d4309: Updated Upstream (Paper) PurpurMC/Purpur@0601f87: Updated Upstream (Paper) PurpurMC/Purpur@06dde9d: Add Ridable and Attribute options for Creaking mob (#1613) PurpurMC/Purpur@420a1ce: Set the bee's `takes-damage-from-water` option to true by default (#1614) PurpurMC/Purpur@2b6f273: Updated Upstream (Paper) PurpurMC/Purpur@504f311: Updated Upstream (Paper) PurpurMC/Purpur@2b694c9: Updated Upstream (Paper) PurpurMC/Purpur@96d7ef7: Updated Upstream (Paper) PurpurMC/Purpur@e141f68: Updated Upstream (Paper) PurpurMC/Purpur@7f6f667: Updated Upstream (Pufferfish) PurpurMC/Purpur@de20ba9: ignore `minecart.max-speed` config value if using minecart experiment, closes #1618 PurpurMC/Purpur@03062a8: fix ridable mobs not being controllable, closes #1620 PurpurMC/Purpur@0493ac3: Updated Upstream (Paper) PurpurMC/Purpur@16ce24a: fix(ridables/creaking): override tick method in look/move control
137 lines
3.2 KiB
Bash
Executable File
137 lines
3.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# To initialize your development environment,
|
|
# run below command in your terminal:
|
|
# source ./initDev
|
|
|
|
PROJECT_DIR=$(pwd)
|
|
|
|
alias cl="clear;"
|
|
|
|
alias src="cd $PROJECT_DIR;"
|
|
alias ca="cd $PROJECT_DIR/*-API || exit 1; vs;"
|
|
alias cg="cd $PROJECT_DIR/paper-api-generator/generated || exit 1; vs;"
|
|
alias cs="cd $PROJECT_DIR/*-Server || exit 1; vs;"
|
|
|
|
alias fa="ca __generate_fixup_patch"
|
|
alias fg="cg __generate_fixup_patch"
|
|
alias fs="cs __generate_fixup_patch"
|
|
|
|
hash gradle 2>&1 && alias gradle="./gradlew"
|
|
alias gr="cd $PROJECT_DIR; gradle"
|
|
alias grc="gr --no-rebuild"
|
|
|
|
alias ap="grc applyPatches"
|
|
alias aap="grc applyAPIPatches"
|
|
alias agp="grc applyGeneratedAPIPatches"
|
|
alias asp="grc applyServerPatches"
|
|
|
|
alias aap!="rm -rf $PROJECT_DIR/*-API; aap"
|
|
alias agp!="rm -rf $PROJECT_DIR/paper-api-generator/generated; agp"
|
|
alias asp!="rm -rf $PROJECT_DIR/*-Server; asp"
|
|
|
|
alias aapa="ca vpa"
|
|
alias aapc="ca vpc"
|
|
alias aapc="ca vps"
|
|
alias agpa="cg vpa"
|
|
alias agpc="cg vpc"
|
|
alias agpc="cg vps"
|
|
alias aspa="cs vpa"
|
|
alias aspc="cs vpc"
|
|
alias aspc="cs vps"
|
|
|
|
alias rp="grc rebuildPatches"
|
|
alias rap="grc rebuildAPIPatches"
|
|
alias rgp="grc rebuildGeneratedAPIPatches"
|
|
alias rsp="grc rebuildServerPatches"
|
|
|
|
alias mk="gr build"
|
|
alias mko="gr createReobfPaperclipJar"
|
|
alias mkm="gr createMojmapPaperclipJar"
|
|
|
|
|
|
alias va="git add"
|
|
alias va.="git add ."
|
|
|
|
alias vl="git log --oneline base..HEAD"
|
|
|
|
alias vr="git rebase --autosquash base"
|
|
alias vra="git rebase --abort"
|
|
alias vrc="va.; git rebase --continue"
|
|
alias vrs="git rebase --skip"
|
|
|
|
alias vp="git am --show-current-patch"
|
|
alias vpa="git am --abort"
|
|
alias vpc="git am --continue"
|
|
alias vps="git am --skip"
|
|
|
|
alias vm="git commit --fixup"
|
|
alias vs="git status"
|
|
|
|
alias vc="git commit --verbose --no-interactive"
|
|
alias vcn="vc --no-message"
|
|
alias vcm="vc --message"
|
|
|
|
alias vca="git commit --verbose --no-interactive --all"
|
|
alias vcan="git commit --verbose --no-interactive --all --no-message"
|
|
alias vcam="git commit --verbose --no-interactive --all --message"
|
|
|
|
alias ve="git commit --verbose --no-interactive --amend"
|
|
alias ven="ve --no-message"
|
|
alias vem="ve --message"
|
|
|
|
alias vea="git commit --verbose --no-interactive --all --amend"
|
|
alias vean="vea --no-message"
|
|
alias veam="vea --message"
|
|
|
|
alias as="ca src"
|
|
alias al="ca vl"
|
|
alias ac="ca va.; vcm"
|
|
alias am="ca vm"
|
|
alias ae="ca ve"
|
|
alias aea="ca vea"
|
|
alias aean="ca vean"
|
|
alias aeam="ca veam"
|
|
|
|
alias gs="cg src"
|
|
alias gl="cg vl"
|
|
alias gc="cg va.; vcm"
|
|
alias gm="cg vm"
|
|
alias ge="cg ve"
|
|
alias gea="cg vea"
|
|
alias gean="cg vean"
|
|
alias geam="cg veam"
|
|
|
|
alias ss="cs src"
|
|
alias sl="cs vl"
|
|
alias sc="cs va.; vcm"
|
|
alias sm="cs vm"
|
|
alias se="cs ve"
|
|
alias sea="cs vea"
|
|
alias sean="cs vean"
|
|
alias seam="cs veam"
|
|
|
|
function __generate_fixup_patch() {
|
|
garg="."
|
|
[[ "$1" == "-x" ]] && garg="--amend"
|
|
|
|
git add .
|
|
git commit "$garg" -m "fixup"
|
|
git format-patch -1
|
|
mv 0001-fixup.patch ../ -f
|
|
|
|
cd ../
|
|
}
|
|
|
|
# Commit Updated Upstream
|
|
function cuu() {
|
|
# shellcheck disable=SC2059
|
|
printf "Updated Upstream ($1)$(/bin/cat compare.txt)" | git commit -F -
|
|
}
|
|
|
|
git update-index --assume-unchanged ./build-data/dev-imports.txt
|
|
|
|
if [ ! -L "$PROJECT_DIR/upstream" ]; then
|
|
grc applyPatches
|
|
ln -dsf "$PROJECT_DIR/.gradle/caches/paperweight/upstreams/paper" "$PROJECT_DIR/upstream"
|
|
fi
|