Make Spigot its own submodule
Merge pull request #118 from Techcable/spigot-in-submodule
This commit is contained in:
@@ -26,16 +26,16 @@ function cleanupPatches {
|
||||
|
||||
function savePatches {
|
||||
what=$1
|
||||
what_name=$(basename $what)
|
||||
target=$2
|
||||
echo "Formatting patches for $what..."
|
||||
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_name}-Patches/" upstream/upstream >/dev/null
|
||||
cd "$basedir"
|
||||
git add -A "$basedir/${what}-Patches"
|
||||
cleanupPatches "$basedir/${what}-Patches"
|
||||
echo " Patches saved for $what to $what-Patches/"
|
||||
git add -A "$basedir/${what_name}-Patches"
|
||||
cleanupPatches "$basedir/${what_name}-Patches"
|
||||
echo " Patches saved for $what to $what_name-Patches/"
|
||||
}
|
||||
|
||||
savePatches Spigot-API Paper-API
|
||||
savePatches Spigot-Server Paper-Server
|
||||
savePatches Spigot/Spigot-API Paper-API
|
||||
savePatches Spigot/Spigot-Server Paper-Server
|
||||
|
||||
Reference in New Issue
Block a user