Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Only rebuild patches that are changed
Dieser Commit ist enthalten in:
Ursprung
2abdb9a061
Commit
8768831c56
@ -6,11 +6,16 @@ then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f nms-patches/*
|
|
||||||
|
|
||||||
for file in $(ls src/main/java/net/minecraft/server)
|
for file in $(ls src/main/java/net/minecraft/server)
|
||||||
do
|
do
|
||||||
echo "Diffing $file"
|
echo "Diffing $file"
|
||||||
dos2unix -q $1/net/minecraft/server/$file $1/net/minecraft/server/$file
|
dos2unix -q $1/net/minecraft/server/$file $1/net/minecraft/server/$file
|
||||||
diff -u $1/net/minecraft/server/$file src/main/java/net/minecraft/server/$file > nms-patches/"$(echo $file | cut -d. -f1)".patch
|
outName=$(echo nms-patches/"$(echo $file | cut -d. -f1)".patch)
|
||||||
|
patchNew=$(diff -u $1/net/minecraft/server/$file src/main/java/net/minecraft/server/$file)
|
||||||
|
patchCut=$(echo "$patchNew" | tail -n +3)
|
||||||
|
patchOld=$(cat "$outName" | tail -n +3)
|
||||||
|
if [ "$patchCut" != "$patchOld" ] ; then
|
||||||
|
echo "$outName changed"
|
||||||
|
echo "$patchNew" > "$outName"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren