mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-12 21:54:06 +01:00
d45565f83b
Instead of checking whether it was set previously, setting it to false, then setting it back to true if it was true before, just use the command-line argument in git to override the config for that command. Using a variable makes it pretty painless to do.
16 lines
429 B
Bash
Executable File
16 lines
429 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
(
|
|
set -e
|
|
basedir="$(cd "$1" && pwd -P)"
|
|
gitcmd="git -c commit.gpgsign=false"
|
|
|
|
($gitcmd 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"
|
|
fi
|
|
)
|