mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 06:20:29 +08:00
Add option to suppress normal output of 'makePatches' so
it only outputs when a patch is changed or created.
This commit is contained in:
parent
7033f180e0
commit
b6bf6aa3ba
@ -7,10 +7,23 @@ then
|
||||
fi
|
||||
cb=src/main/java/net/minecraft/server
|
||||
nms="$1/net/minecraft/server"
|
||||
show_diff_msg=true
|
||||
|
||||
if [ $# -ge 2 ]
|
||||
then
|
||||
show_diff_msg=$2
|
||||
if [ "$show_diff_msg" = false ]
|
||||
then
|
||||
echo "Suppressing normal output. Will only output for changed or created patches."
|
||||
fi
|
||||
fi
|
||||
|
||||
for file in $(/bin/ls $cb)
|
||||
do
|
||||
if [ "$show_diff_msg" = true ]
|
||||
then
|
||||
echo "Diffing $file"
|
||||
fi
|
||||
sed -i 's/\r//' "$nms/$file"
|
||||
sed -i 's/\r//' "$cb/$file"
|
||||
outName=$(echo nms-patches/"$(echo $file | cut -d. -f1)".patch)
|
||||
|
Loading…
Reference in New Issue
Block a user