mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
always clean patches
This commit is contained in:
parent
a8dc98774c
commit
16a89b43d7
1 changed files with 2 additions and 3 deletions
|
@ -29,14 +29,13 @@ function savePatches {
|
||||||
target=$2
|
target=$2
|
||||||
echo "Formatting patches for $what..."
|
echo "Formatting patches for $what..."
|
||||||
cd "$basedir/$target"
|
cd "$basedir/$target"
|
||||||
|
rm -rf "$basedir/${what}-Patches/"
|
||||||
git format-patch --no-stat -N -o "$basedir/${what}-Patches/" upstream/upstream >/dev/null
|
git format-patch --no-stat -N -o "$basedir/${what}-Patches/" upstream/upstream >/dev/null
|
||||||
cd "$basedir"
|
cd "$basedir"
|
||||||
git add -A "$basedir/${what}-Patches"
|
git add -A "$basedir/${what}-Patches"
|
||||||
cleanupPatches "$basedir/${what}-Patches"
|
cleanupPatches "$basedir/${what}-Patches"
|
||||||
echo " Patches saved for $what to $what-Patches/"
|
echo " Patches saved for $what to $what-Patches/"
|
||||||
}
|
}
|
||||||
if [ "$1" == "clean" ]; then
|
|
||||||
rm -rf Spigot-*-Patches
|
|
||||||
fi
|
|
||||||
savePatches Spigot-API Paper-API
|
savePatches Spigot-API Paper-API
|
||||||
savePatches Spigot-Server Paper-Server
|
savePatches Spigot-Server Paper-Server
|
||||||
|
|
Loading…
Reference in a new issue