Workaround for OSX not having the realpath command.
This commit is contained in:
parent
0394633734
commit
4108dc5b68
|
@ -3,7 +3,7 @@
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
echo "Rebuilding Forked projects.... "
|
echo "Rebuilding Forked projects.... "
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
|
|
||||||
(git submodule update --init && ./scripts/remap.sh "$basedir" && ./scripts/decompile.sh "$basedir" && ./scripts/init.sh "$basedir" && ./scripts/applyPatches.sh "$basedir") || (
|
(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"
|
echo "Failed to build Paper"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/$minecraftversion"
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -e
|
||||||
nms="net/minecraft/server"
|
nms="net/minecraft/server"
|
||||||
export MODLOG=""
|
export MODLOG=""
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
|
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/$minecraftversion"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
|
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat "$basedir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat "$basedir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
decompiledir="$workdir/$minecraftversion"
|
decompiledir="$workdir/$minecraftversion"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
paperjar="../../Paper-Server/target/paper-$mcver.jar"
|
paperjar="../../Paper-Server/target/paper-$mcver.jar"
|
||||||
|
@ -18,5 +18,5 @@ echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Build success!"
|
echo "Build success!"
|
||||||
echo "Copied final jar to "$(realpath "$basedir/paperclip.jar")
|
echo "Copied final jar to $(cd "$basedir" && pwd -P)/paperclip.jar"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
echo "Rebuilding patch files from current fork state..."
|
echo "Rebuilding patch files from current fork state..."
|
||||||
git config core.safecrlf false
|
git config core.safecrlf false
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
minecraftversion=$(cat ${workdir}/BuildData/info.json | grep minecraftVersion | cut -d '"' -f 4)
|
minecraftversion=$(cat ${workdir}/BuildData/info.json | grep minecraftVersion | cut -d '"' -f 4)
|
||||||
minecrafthash=$(cat ${workdir}/BuildData/info.json | grep minecraftHash | cut -d '"' -f 4)
|
minecrafthash=$(cat ${workdir}/BuildData/info.json | grep minecraftHash | cut -d '"' -f 4)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir=$(realpath "$1")
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
|
|
||||||
function update {
|
function update {
|
||||||
|
|
Loading…
Reference in New Issue