2016-11-26 22:33:41 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
"rb" | "rbp" | "rebuild")
|
2020-11-09 02:35:40 +01:00
|
|
|
scripts/rebuildPatches.sh || exit 1
|
2016-11-26 22:33:41 +01:00
|
|
|
;;
|
|
|
|
"p" | "patch")
|
2020-11-09 02:35:40 +01:00
|
|
|
scripts/build.sh || exit 1
|
2016-11-26 22:33:41 +01:00
|
|
|
;;
|
|
|
|
"m" | "up" | "merge")
|
2020-11-09 02:35:40 +01:00
|
|
|
scripts/mergeUpstream.sh || exit 1
|
2016-11-26 22:33:41 +01:00
|
|
|
;;
|
|
|
|
"b" | "build")
|
2020-11-09 02:35:40 +01:00
|
|
|
scripts/build.sh --jar || exit 1
|
2016-11-26 22:33:41 +01:00
|
|
|
;;
|
|
|
|
"e" | "edit")
|
2020-11-09 02:35:40 +01:00
|
|
|
scripts/edit.sh || exit 1
|
2016-11-26 22:33:41 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
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:"
|
2018-07-21 19:47:04 +02:00
|
|
|
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"
|
2016-11-26 22:33:41 +01:00
|
|
|
echo " * b, build | Builds the project"
|
|
|
|
echo " | The bootstrap artifact can be found in Waterfall-Proxy/bootstrap/target/"
|
2018-07-21 19:47:04 +02:00
|
|
|
echo " * e, edit | Runs git rebase -i for Waterfall, allowing patches to be easily modified"
|
2016-11-26 22:33:41 +01:00
|
|
|
;;
|
|
|
|
esac
|