mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-18 08:15:13 +01:00
85f0a0c69a
Ensures that failures of primarily applying patches during builds should be passed up, this will need a better look over at some point
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
case "$1" in
|
|
"rb" | "rbp" | "rebuild")
|
|
scripts/rebuildPatches.sh || exit 1
|
|
;;
|
|
"p" | "patch")
|
|
scripts/build.sh || exit 1
|
|
;;
|
|
"m" | "up" | "merge")
|
|
scripts/mergeUpstream.sh || exit 1
|
|
;;
|
|
"b" | "build")
|
|
scripts/build.sh --jar || exit 1
|
|
;;
|
|
"e" | "edit")
|
|
scripts/edit.sh || exit 1
|
|
;;
|
|
*)
|
|
echo "WaterfallMC build tool command. This provides a variety of commands to control the WaterfallMC"
|
|
echo "build. View below for details of the available commands."
|
|
echo ""
|
|
echo "Commands:"
|
|
echo " * rb, rbp, rebuild | Rebuilds the patches"
|
|
echo " * p, patch | Applies all the patches to BungeeCord"
|
|
echo " * m, up, merge | Utility to aid in merging upstream"
|
|
echo " * b, build | Builds the project"
|
|
echo " | The bootstrap artifact can be found in Waterfall-Proxy/bootstrap/target/"
|
|
echo " * e, edit | Runs git rebase -i for Waterfall, allowing patches to be easily modified"
|
|
;;
|
|
esac
|