Rebuild patches after we continue from a paper edit.

Dieser Commit ist enthalten in:
DemonWav 2016-04-02 18:34:27 -05:00
Ursprung 51af958804
Commit 7effde04b1
11 geänderte Dateien mit 44 neuen und 35 gelöschten Zeilen

18
paper
Datei anzeigen

@ -49,29 +49,37 @@ case "$1" in
cd "$basedir"
;;
"e" | "edit")
if [[ "$2" = "server" ]] ; then
case "$2" in
"server")
cd "$basedir/Paper-Server"
export LAST_EDIT=$(pwd)
paperstash
git rebase -i upstream/upstream
paperunstash
elif [[ "$2" = "api" ]] ; then
;;
"api")
cd "$basedir/Paper-API"
export LAST_EDIT=$(pwd)
paperstash
git rebase -i upstream/upstream
paperunstash
elif [[ "$2" = "continue" ]] ; then
;;
"continue")
cd "$LAST_EDIT"
git add .
git rebase --continue
unset LAST_EDIT
(
cd "$basedir"
scripts/rebuildPatches.sh "$basedir"
else
)
;;
*)
echo "You must edit either the api or server."
fi
;;
esac
;;
"setup")
if [[ -f ~/.bashrc ]] ; then

Datei anzeigen

@ -1,7 +1,7 @@
#!/usr/bin/env bash
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
echo "Rebuilding Forked projects.... "

Datei anzeigen

@ -1,6 +1,6 @@
#!/usr/bin/env bash
basedir="$1"
basedir=$(realpath "$1")
(git submodule update --init && ./scripts/remap.sh "$basedir" && ./scripts/decompile.sh "$basedir" && ./scripts/init.sh "$basedir" && ./scripts/applyPatches.sh "$basedir") || (
echo "Failed to build Paper"

Datei anzeigen

@ -1,7 +1,7 @@
#!/usr/bin/env bash
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
decompiledir="$workdir/$minecraftversion"

Datei anzeigen

@ -3,7 +3,7 @@
nms="net/minecraft/server"
export MODLOG=""
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)

Datei anzeigen

@ -1,7 +1,7 @@
#!/usr/bin/env bash
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
decompiledir="$workdir/$minecraftversion"

Datei anzeigen

@ -2,7 +2,7 @@
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
minecraftversion=$(cat "$basedir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
decompiledir="$workdir/$minecraftversion"

Datei anzeigen

@ -1,17 +1,18 @@
#!/usr/bin/env bash
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
paperjar="../../Paper-Server/target/paper-$mcver.jar"
vanillajar="../$mcver/$mcver.jar"
(
cd "$workdir/Paperclip"
mvn clean package "-Dmcver=$mcver" "-Dpaperjar=$paperjar" "-Dvanillajar=$vanillajar" || exit 1
cd ..
)
cp "$workdir/Paperclip/target/paperclip-${mcver}.jar" "$basedir/paperclip.jar"
echo ""
echo ""
echo ""
echo "Build success!"
echo "Copied final jar to $basedir/paperclip.jar"
echo "Copied final jar to "$(realpath "$basedir/paperclip.jar")

Datei anzeigen

@ -1,7 +1,7 @@
#!/usr/bin/env bash
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
echo "Rebuilding patch files from current fork state..."
git config core.safecrlf false

Datei anzeigen

@ -1,7 +1,7 @@
#!/usr/bin/env bash
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
minecraftversion=$(cat ${workdir}/BuildData/info.json | grep minecraftVersion | cut -d '"' -f 4)
minecrafthash=$(cat ${workdir}/BuildData/info.json | grep minecraftHash | cut -d '"' -f 4)

Datei anzeigen

@ -1,7 +1,7 @@
#!/usr/bin/env bash
PS1="$"
basedir="$1"
basedir=$(realpath "$1")
workdir="$basedir/work"
function update {