2016-04-02 05:55:54 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-04-03 01:34:27 +02:00
|
|
|
basedir=$(realpath "$1")
|
2016-04-02 05:55:54 +02:00
|
|
|
|
|
|
|
(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"
|
|
|
|
exit 1
|
|
|
|
) || exit 1
|
|
|
|
if [ "$2" == "--jar" ]; then
|
|
|
|
(mvn clean install && ./scripts/paperclip.sh "$basedir") || exit 1
|
|
|
|
fi
|