summaryrefslogtreecommitdiffstats
path: root/makePatches.sh
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-11-26 08:32:16 +1100
committermd_5 <git@md-5.net>2014-11-28 17:16:30 +1100
commit24557bc2b37deb6a0edf497d547471832457b1dd (patch)
treec560572889a3b0b34964a0cddb35dc87fda3c914 /makePatches.sh
parenta4805dbd77da057cc1ea0bf344379bc6e53ca1f6 (diff)
downloadcraftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.gz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.lz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.xz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.zip
Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/
Diffstat (limited to 'makePatches.sh')
-rwxr-xr-xmakePatches.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/makePatches.sh b/makePatches.sh
new file mode 100755
index 00000000..771e39f8
--- /dev/null
+++ b/makePatches.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+if [ -z "$1" ]
+then
+ echo "Please run this script again with the clean decompile sources as an argument. In most cases this will be ../work/decompile-XXXX"
+ exit
+fi
+
+rm -f nms-patches/*
+
+for file in $(ls src/main/java/net/minecraft/server)
+do
+ echo "Diffing $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
+done