Fix paper build tool to work with zsh.
Dieser Commit ist enthalten in:
Ursprung
13ca1593c5
Commit
afc619e188
11
paper
11
paper
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# resolve shell-specifics
|
||||
case "$SHELL" in
|
||||
case "$(echo "$SHELL" | sed 's|/usr||g')" in
|
||||
"/bin/zsh")
|
||||
RCPATH="$HOME/.zshrc"
|
||||
SOURCE="${BASH_SOURCE[0]:-${(%):-%N}}"
|
||||
@ -14,6 +14,7 @@ case "$SHELL" in
|
||||
SOURCE="${BASH_SOURCE[0]}"
|
||||
;;
|
||||
esac
|
||||
|
||||
# get base dir regardless of execution location
|
||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
@ -64,6 +65,13 @@ case "$1" in
|
||||
fi
|
||||
)
|
||||
;;
|
||||
"m" | "mcdev")
|
||||
(
|
||||
set -e
|
||||
cd "$basedir"
|
||||
scripts/makemcdevsrc.sh "$basedir"
|
||||
)
|
||||
;;
|
||||
"r" | "root")
|
||||
cd "$basedir"
|
||||
;;
|
||||
@ -138,6 +146,7 @@ case "$1" in
|
||||
echo " * rb, rbp, rebuild | Rebuild patches, can be called from anywhere."
|
||||
echo " * p, patch | Apply all patches to the project without building it. Can be run from anywhere."
|
||||
echo " * j, jar | Apply all patches and build the project, paperclip.jar will be output. Can be run from anywhere."
|
||||
echo " * m, mcdev | Setup decompiled sources for non-modified NMS files to be imported into an IDE. Can be run from anywhere."
|
||||
echo ""
|
||||
echo " These commands require the setup command before use:"
|
||||
echo " * r, root | Change directory to the root of the project."
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren